summaryrefslogtreecommitdiffstats
path: root/obsolete-buildroot/sources/openwrt/ipkg/dropbear/CONTROL/postinst
blob: bfe8b4731bda9f6547da6f0214510577c7a27fcf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh
echo
mkdir -p /etc/dropbear
[ ! -f /etc/dropbear/dropbear_dss_host_key ] && { 
/tmp/dropbearkey -t dss -f /etc/dropbear/dropbear_dss_host_key
}
rm /tmp/dropbearkey
[ ! -f /etc/passwd ] && {
cat > /etc/passwd << EOF
root::0:0:root:/tmp:/bin/ash
EOF
cat > /etc/shells << EOF
/bin/ash
EOF
cat > /etc/group << EOF
root:*:0:
EOF
passwd
}

cat << EOF
==========================================
dropbear is now configured to run on boot.
==========================================
To start it now, run the following command:

/usr/bin/dropbear

EOF