CRUX-ARM :
Home
Home
::
Documentation
::
Download
::
Development
::
Community
::
Ports
::
Packages
::
Bugs
::
Links
::
About
::
Donors
development
/
initrd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
39efd9b
)
Fixed rc script to install modules and pkgutils
author
Jose V Beneyto
<sepen@crux.nu>
Thu, 31 May 2012 16:16:49 +0000
(16:16 +0000)
committer
Jose V Beneyto
<sepen@crux.nu>
Thu, 31 May 2012 16:16:49 +0000
(16:16 +0000)
filesystem/rc
patch
|
blob
|
blame
|
history
diff --git
a/filesystem/rc
b/filesystem/rc
index f7b7a6f9df386986c2a61685627fe7d4f111cc97..b04fc16b05464ba86536032278ee1d5af8eaa4a7 100755
(executable)
--- a/
filesystem/rc
+++ b/
filesystem/rc
@@
-79,15
+79,16
@@
find_and_mount_media() {
echo
else
# configure modules
echo
else
# configure modules
- MODULES_DIR="`find /media/crux/kernel -type d -name 'modules-*'`"
- if [ ! -z "$MODULES_DIR" ]; then
- ln -sf $MODULES_DIR/lib/modules /lib
+ MODULES="`find /media/crux/kernel -type d -name 'modules-*.tar.*'`"
+ if [ ! -z "$MODULES" ]; then
+ tar -C /tmp -xf $MODULES
+ cd /lib && ln -s /lib/* .
depmod
fi
# configure pkgutils
depmod
fi
# configure pkgutils
- PKGUTILS="`find /media/crux/core -type f -name 'pkgutils#*.pkg.tar.
gz
'`"
+ PKGUTILS="`find /media/crux/core -type f -name 'pkgutils#*.pkg.tar.
*
'`"
if [ ! -z "$PKGUTILS" ]; then
if [ ! -z "$PKGUTILS" ]; then
- tar -C /tmp -x
z
f $PKGUTILS
+ tar -C /tmp -xf $PKGUTILS
cd /usr/bin && ln -s /tmp/usr/bin/* .
cd /etc && ln -s /tmp/etc/* .
fi
cd /usr/bin && ln -s /tmp/usr/bin/* .
cd /etc && ln -s /tmp/etc/* .
fi