Files
digoo-m1x_hacks/npc/do.sh
2018-01-17 19:33:27 +01:00

15 lines
417 B
Bash
Executable File

#!/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