time
This commit is contained in:
BIN
npc/Europe/Berlin
Normal file
BIN
npc/Europe/Berlin
Normal file
Binary file not shown.
10
npc/boot.sh
Executable file
10
npc/boot.sh
Executable 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
|
||||
|
||||
14
npc/do.sh
Executable file
14
npc/do.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
|
||||
rdate -s time.fu-berlin.de
|
||||
ln -s /npc/Europe/Berlin /etc/localtime
|
||||
|
||||
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
|
||||
sed -i -e 's/root:x:0:0:root:\/root:\/bin\/sh/root:x:0:0:root:\/npc\/root-home:\/bin\/sh/g' /etc/passwd
|
||||
mkdir -p /etc/dropbear
|
||||
cp /npc/dropbear_ecdsa_host_key /etc/dropbear/
|
||||
|
||||
./dropbearmulti dropbear
|
||||
|
||||
0
npc/root-home/.ssh/authorized_keys
Normal file
0
npc/root-home/.ssh/authorized_keys
Normal file
Reference in New Issue
Block a user