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 c41c350d1..efa4ec72d 100644 --- a/applets/busybox.c +++ b/applets/busybox.c | |||
@@ -72,6 +72,9 @@ static const struct Applet applets[] = { | |||
72 | #ifdef BB_INIT //sbin | 72 | #ifdef BB_INIT //sbin |
73 | {"init", init_main}, | 73 | {"init", init_main}, |
74 | #endif | 74 | #endif |
75 | #ifdef BB_FEATURE_LINUXRC // | ||
76 | {"linuxrc", init_main}, | ||
77 | #endif | ||
75 | #ifdef BB_KILL //bin | 78 | #ifdef BB_KILL //bin |
76 | {"kill", kill_main}, | 79 | {"kill", kill_main}, |
77 | #endif | 80 | #endif |
diff --git a/applets/busybox.sh b/applets/busybox.sh index 6e448dc65..cab248f11 100755 --- a/applets/busybox.sh +++ b/applets/busybox.sh | |||
@@ -1,4 +1,4 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | sed -n '/^#define/{s/.*BB_//; s/$/.o/p; }' busybox.def.h | \ | 2 | ls -1 `sed -n '/^#define/{s/.*BB_// ; s/$/.c/p; }' busybox.def.h | \ |
3 | tr [:upper:] [:lower:] | 3 | tr [:upper:] [:lower:]` 2> /dev/null | sed -e 's/\.c$/\.o/g' |
4 | 4 | ||
diff --git a/applets/install.sh b/applets/install.sh index 29c9e26d9..5f0d2d5da 100755 --- a/applets/install.sh +++ b/applets/install.sh | |||
@@ -6,17 +6,20 @@ if [ "$1" == "" ]; then | |||
6 | echo "No installation directory, aborting." | 6 | echo "No installation directory, aborting." |
7 | exit 1; | 7 | exit 1; |
8 | fi | 8 | fi |
9 | rm -rf $1 | ||
9 | 10 | ||
10 | # can't just use cat, rmdir is not unique | ||
11 | #h=`cat busybox.links` | ||
12 | h=`sort busybox.links | uniq` | 11 | h=`sort busybox.links | uniq` |
13 | 12 | ||
14 | mkdir -p $1/bin | ||
15 | for i in $h ; do | 13 | for i in $h ; do |
16 | [ ${verbose} ] && echo " making link to $i" | 14 | echo "working on $i now" |
17 | mkdir -p $1/`echo $i | sed -e 's/\(^.*\/\)\(.*\)/\1/g' ` | 15 | mypath=`echo $i | sed -e 's/\(^.*\/\)\(.*\)/\1/g' `; |
18 | ln -s busybox $1/bin/`echo $i | sed -e 's/\(^.*\/\)\(.*\)/\2/g' ` | 16 | myapp=`echo $i | sed -e 's/\(^.*\/\)\(.*\)/\2/g' `; |
17 | echo "mkdir -p $1$mypath" | ||
18 | echo "(cd $1$mypath ; ln -s /bin/busybox $1$mypath$myapp )" | ||
19 | mkdir -p $1$mypath | ||
20 | (cd $1$mypath ; ln -s /bin/busybox $1$mypath$myapp ) | ||
19 | done | 21 | done |
20 | rm -f $1/bin/busybox | 22 | rm -f $1/bin/busybox |
21 | install -m 755 busybox $1/bin/busybox | 23 | install -m 755 busybox $1/bin/busybox |
22 | 24 | ||
25 | |||