--- busybox-1.15.1/include/libbb.h.original 2009-09-18 19:16:44.000000000 +0800 +++ busybox-1.15.1/include/libbb.h 2009-09-18 19:25:36.000000000 +0800 @@ -1535,9 +1535,9 @@ # define SC_FORMAT "/dev/ttyS%d" #endif # define VC_FORMAT "/dev/tty%d" -# define LOOP_FORMAT "/dev/loop%d" -# define LOOP_NAMESIZE (sizeof("/dev/loop") + sizeof(int)*3 + 1) -# define LOOP_NAME "/dev/loop" +# define LOOP_FORMAT "/dev/block/loop%d" +# define LOOP_NAMESIZE (sizeof("/dev/block/loop") + sizeof(int)*3 + 1) +# define LOOP_NAME "/dev/block/loop" # define FB_0 "/dev/fb0" #endif --- busybox-1.15.1/libbb/appletlib.c.original 2009-09-18 19:25:12.000000000 +0800 +++ busybox-1.15.1/libbb/appletlib.c 2009-09-18 19:25:36.000000000 +0800 @@ -591,14 +591,13 @@ /* directory table * this should be consistent w/ the enum, * busybox.h::bb_install_loc_t, or else... */ - static const char usr_bin [] ALIGN1 = "/usr/bin"; - static const char usr_sbin[] ALIGN1 = "/usr/sbin"; + static const char data_local_bin [] ALIGN1 = "/data/local/bin"; static const char *const install_dir[] = { - &usr_bin [8], /* "", equivalent to "/" for concat_path_file() */ - &usr_bin [4], /* "/bin" */ - &usr_sbin[4], /* "/sbin" */ - usr_bin, - usr_sbin + data_local_bin, /* "", equivalent to "/" for concat_path_file() */ + data_local_bin, /* "/bin" */ + data_local_bin, /* "/sbin" */ + data_local_bin, + data_local_bin }; int (*lf)(const char *, const char *);