Add some mirrors
[openwrt.git] / obsolete-buildroot / sources / openwrt / ipkg / dropbear / CONTROL / postinst
1 #!/bin/sh
2 echo
3 mkdir -p /etc/dropbear
4 [ ! -f /etc/dropbear/dropbear_dss_host_key ] && {
5 /tmp/dropbearkey -t dss -f /etc/dropbear/dropbear_dss_host_key
6 }
7 rm /tmp/dropbearkey
8 [ ! -f /etc/passwd ] && {
9 cat > /etc/passwd << EOF
10 root::0:0:root:/tmp:/bin/ash
11 EOF
12 cat > /etc/shells << EOF
13 /bin/ash
14 EOF
15 cat > /etc/group << EOF
16 root:*:0:
17 EOF
18 passwd
19 }
20
21 cat << EOF
22 ==========================================
23 dropbear is now configured to run on boot.
24 ==========================================
25 To start it now, run the following command:
26
27 /usr/bin/dropbear
28
29 EOF
This page took 0.052022 seconds and 5 git commands to generate.