This commit is contained in:
2018-01-16 22:53:58 +01:00
commit bd63143f0a
4 changed files with 20 additions and 0 deletions

BIN
bin/dropbear_ecdsa_host_key Normal file

Binary file not shown.

BIN
bin/dropbearmulti Normal file

Binary file not shown.

10
boot.sh Executable file
View File

@@ -0,0 +1,10 @@
#start npc boot
cp /npc/sensors/* /etc/sensors/ -Rf
if [ -e /patch/lib/mt7601Usta_v2.ko ] ; then
insmod /patch/lib/mt7601Usta_v2.ko
fi
sh /npc/do.sh
sync;sync;sync && echo 3 > /proc/sys/vm/drop_caches

10
do.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/sh
cd /npc/
# TODO add your $password-hash here
sed -i -e 's/root::10933:0:99999:7:::/root:$password-hash:10933:0:99999:7:::/g' /etc/shadow
mkdir -p /etc/dropbear
cp /npc/dropbear_ecdsa_host_key /etc/dropbear/
./dropbearmulti dropbear