Fix creation of /linuxrc
-Erik
This commit is contained in:
parent
b9167cb67f
commit
9a8195cc03
@ -149,7 +149,7 @@ static const struct Applet applets[] = {
|
|||||||
#ifdef BB_LENGTH
|
#ifdef BB_LENGTH
|
||||||
{"length", length_main, _BB_DIR_USR_BIN},
|
{"length", length_main, _BB_DIR_USR_BIN},
|
||||||
#endif
|
#endif
|
||||||
#ifdef BB_FEATURE_LINUXRC //
|
#ifdef BB_LINUXRC
|
||||||
{"linuxrc", init_main, _BB_DIR_ROOT},
|
{"linuxrc", init_main, _BB_DIR_ROOT},
|
||||||
#endif
|
#endif
|
||||||
#ifdef BB_LN
|
#ifdef BB_LN
|
||||||
|
@ -15,6 +15,7 @@ for i in $h ; do
|
|||||||
ln -fs /bin/busybox $1$i
|
ln -fs /bin/busybox $1$i
|
||||||
done
|
done
|
||||||
rm -f $1/bin/busybox
|
rm -f $1/bin/busybox
|
||||||
|
mkdir -p $1/bin
|
||||||
install -m 755 busybox $1/bin/busybox
|
install -m 755 busybox $1/bin/busybox
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
@ -149,7 +149,7 @@ static const struct Applet applets[] = {
|
|||||||
#ifdef BB_LENGTH
|
#ifdef BB_LENGTH
|
||||||
{"length", length_main, _BB_DIR_USR_BIN},
|
{"length", length_main, _BB_DIR_USR_BIN},
|
||||||
#endif
|
#endif
|
||||||
#ifdef BB_FEATURE_LINUXRC //
|
#ifdef BB_LINUXRC
|
||||||
{"linuxrc", init_main, _BB_DIR_ROOT},
|
{"linuxrc", init_main, _BB_DIR_ROOT},
|
||||||
#endif
|
#endif
|
||||||
#ifdef BB_LN
|
#ifdef BB_LN
|
||||||
|
@ -211,6 +211,7 @@
|
|||||||
//---------------------------------------------------
|
//---------------------------------------------------
|
||||||
// Nothing beyond this point should ever be touched by
|
// Nothing beyond this point should ever be touched by
|
||||||
// mere mortals so leave this stuff alone.
|
// mere mortals so leave this stuff alone.
|
||||||
|
//
|
||||||
#ifdef BB_FEATURE_MOUNT_MTAB_SUPPORT
|
#ifdef BB_FEATURE_MOUNT_MTAB_SUPPORT
|
||||||
#define BB_MTAB
|
#define BB_MTAB
|
||||||
#endif
|
#endif
|
||||||
@ -232,6 +233,13 @@
|
|||||||
#ifdef BB_FEATURE_LINUXRC
|
#ifdef BB_FEATURE_LINUXRC
|
||||||
#ifndef BB_INIT
|
#ifndef BB_INIT
|
||||||
#define BB_INIT
|
#define BB_INIT
|
||||||
|
#define BB_LINUXRC
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
//
|
||||||
|
#ifdef BB_GZIP
|
||||||
|
#ifndef BB_GUNZIP
|
||||||
|
#define BB_GUNZIP
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
//
|
//
|
||||||
|
@ -15,6 +15,7 @@ for i in $h ; do
|
|||||||
ln -fs /bin/busybox $1$i
|
ln -fs /bin/busybox $1$i
|
||||||
done
|
done
|
||||||
rm -f $1/bin/busybox
|
rm -f $1/bin/busybox
|
||||||
|
mkdir -p $1/bin
|
||||||
install -m 755 busybox $1/bin/busybox
|
install -m 755 busybox $1/bin/busybox
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
@ -527,8 +527,10 @@ int fullRead(int fd, char *buf, int len)
|
|||||||
#if defined (BB_CHMOD_CHOWN_CHGRP) \
|
#if defined (BB_CHMOD_CHOWN_CHGRP) \
|
||||||
|| defined (BB_CP_MV) \
|
|| defined (BB_CP_MV) \
|
||||||
|| defined (BB_FIND) \
|
|| defined (BB_FIND) \
|
||||||
|| defined (BB_LS) \
|
|| defined (BB_INSMOD) \
|
||||||
|| defined (BB_INSMOD)
|
|| defined (BB_RM) \
|
||||||
|
|| defined (BB_TAR)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Walk down all the directories under the specified
|
* Walk down all the directories under the specified
|
||||||
* location, and do something (something specified
|
* location, and do something (something specified
|
||||||
|
Loading…
x
Reference in New Issue
Block a user