diff options
author | mbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2004-08-20 05:39:59 +0000 |
---|---|---|
committer | mbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2004-08-20 05:39:59 +0000 |
commit | 86697678e93f1a432db4b340099a6b34740495f6 (patch) | |
tree | b03e6465ab55acd0d11507bcb584626ed5e48c17 /obsolete-buildroot/sources/openwrt/ipkg/dropbear/CONTROL/postinst | |
parent | 89d5f1345fed2acdc703cc3a51e25662097a9c6e (diff) |
fix zlib; add dropbear ipkg
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@139 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'obsolete-buildroot/sources/openwrt/ipkg/dropbear/CONTROL/postinst')
-rwxr-xr-x | obsolete-buildroot/sources/openwrt/ipkg/dropbear/CONTROL/postinst | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/obsolete-buildroot/sources/openwrt/ipkg/dropbear/CONTROL/postinst b/obsolete-buildroot/sources/openwrt/ipkg/dropbear/CONTROL/postinst new file mode 100755 index 000000000..bfe8b4731 --- /dev/null +++ b/obsolete-buildroot/sources/openwrt/ipkg/dropbear/CONTROL/postinst @@ -0,0 +1,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 |