mirror of
https://github.com/adron-s/mtik_initrd_hacks.git
synced 2025-12-10 07:44:40 +01:00
Everything works ... tested on RB3011. For the rest of the boards, maybe need to slightly correct the path to the /pub directory.
17 lines
408 B
Bash
17 lines
408 B
Bash
ROOT=/flash/rw/disk/pub/OWL
|
|
cd $ROOT
|
|
[ -f $ROOT/bin/busybox -a ! -f $ROOT/bin/sh ] && {
|
|
echo "Initializing busybox"
|
|
#chmod 700 $ROOT/bin/busybox
|
|
$ROOT/bin/busybox --install -s $ROOT/bin
|
|
}
|
|
export PATH="$ROOT/bin:$PATH"
|
|
#cd $ROOT
|
|
#ls ./bin/sh
|
|
#exit 0
|
|
while [ ! -d /system ]; do
|
|
echo "Waiting for /system dir ready"
|
|
sleep 5
|
|
done
|
|
echo "Launching telnetd"
|
|
busybox chroot /system telnetd -p 22111 -F -l sh
|