You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
552 B
Bash

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