diff options
Diffstat (limited to 'applets')
-rw-r--r-- | applets/busybox.c | 3 | ||||
-rwxr-xr-x | applets/busybox.sh | 4 | ||||
-rwxr-xr-x | applets/install.sh | 15 |
3 files changed, 14 insertions, 8 deletions
diff --git a/applets/busybox.c b/applets/busybox.c index c41c350..efa4ec7 100644 --- a/applets/busybox.c +++ b/applets/busybox.c @@ -72,6 +72,9 @@ static const struct Applet applets[] = { #ifdef BB_INIT //sbin {"init", init_main}, #endif +#ifdef BB_FEATURE_LINUXRC // + {"linuxrc", init_main}, +#endif #ifdef BB_KILL //bin {"kill", kill_main}, #endif diff --git a/applets/busybox.sh b/applets/busybox.sh index 6e448dc..cab248f 100755 --- a/applets/busybox.sh +++ b/applets/busybox.sh @@ -1,4 +1,4 @@ #!/bin/sh -sed -n '/^#define/{s/.*BB_//; s/$/.o/p; }' busybox.def.h | \ -tr [:upper:] [:lower:] +ls -1 `sed -n '/^#define/{s/.*BB_// ; s/$/.c/p; }' busybox.def.h | \ +tr [:upper:] [:lower:]` 2> /dev/null | sed -e 's/\.c$/\.o/g' diff --git a/applets/install.sh b/applets/install.sh index 29c9e26..5f0d2d5 100755 --- a/applets/install.sh +++ b/applets/install.sh @@ -6,17 +6,20 @@ if [ "$1" == "" ]; then echo "No installation directory, aborting." exit 1; fi +rm -rf $1 -# can't just use cat, rmdir is not unique -#h=`cat busybox.links` h=`sort busybox.links | uniq` -mkdir -p $1/bin for i in $h ; do - [ ${verbose} ] && echo " making link to $i" - mkdir -p $1/`echo $i | sed -e 's/\(^.*\/\)\(.*\)/\1/g' ` - ln -s busybox $1/bin/`echo $i | sed -e 's/\(^.*\/\)\(.*\)/\2/g' ` + echo "working on $i now" + mypath=`echo $i | sed -e 's/\(^.*\/\)\(.*\)/\1/g' `; + myapp=`echo $i | sed -e 's/\(^.*\/\)\(.*\)/\2/g' `; + echo "mkdir -p $1$mypath" + echo "(cd $1$mypath ; ln -s /bin/busybox $1$mypath$myapp )" + mkdir -p $1$mypath + (cd $1$mypath ; ln -s /bin/busybox $1$mypath$myapp ) done rm -f $1/bin/busybox install -m 755 busybox $1/bin/busybox + |