mtik_initrd_hacks/for_ftp_upload/OWL.sh
Sergey Sergeev 1f9564198c Finally, support for 7.0b1 has been added.
Everything works ... tested on RB3011.
For the rest of the boards, maybe need to slightly correct the path to the /pub directory.
2019-09-12 00:55:18 +03:00

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