1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-20 03:29:22 +02:00
openwrt-xburst/obsolete-buildroot/sources/openwrt/ipkg/dropbear/CONTROL/postinst
mbm 86697678e9 fix zlib; add dropbear ipkg
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@139 3c298f89-4303-0410-b956-a3cf2f4a3e73
2004-08-20 05:39:59 +00:00

30 lines
552 B
Bash
Executable File

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