|
|
@ -53,12 +53,12 @@ StartUp() {
|
|
|
|
/sbin/mdev -s # have mdev populate /dev
|
|
|
|
/sbin/mdev -s # have mdev populate /dev
|
|
|
|
|
|
|
|
|
|
|
|
#// Create standard (non-mdev) devices
|
|
|
|
#// Create standard (non-mdev) devices
|
|
|
|
if [ ! -f /dev/md0 ]
|
|
|
|
if [ ! -e /dev/md0 ]
|
|
|
|
then
|
|
|
|
then
|
|
|
|
makedevs /dev/md b 9 0 0 7
|
|
|
|
makedevs /dev/md b 9 0 0 7
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
if [ ! -f /dev/tty0 ]
|
|
|
|
if [ ! -e /dev/tty0 ]
|
|
|
|
then
|
|
|
|
then
|
|
|
|
makedevs /dev/tty c 4 0 0 12
|
|
|
|
makedevs /dev/tty c 4 0 0 12
|
|
|
|
fi
|
|
|
|
fi
|
|
|
@ -93,7 +93,9 @@ StartUp() {
|
|
|
|
#// Hostname
|
|
|
|
#// Hostname
|
|
|
|
hostname netboot
|
|
|
|
hostname netboot
|
|
|
|
|
|
|
|
|
|
|
|
#// Setup dropbear (sshd)
|
|
|
|
if [ -n "`which dropbear 2>/dev/null`" ]
|
|
|
|
|
|
|
|
then
|
|
|
|
|
|
|
|
# Setup dropbear (sshd)
|
|
|
|
echo -e ""
|
|
|
|
echo -e ""
|
|
|
|
mkdir /etc/dropbear
|
|
|
|
mkdir /etc/dropbear
|
|
|
|
echo -e ">>> Generating RSA hostkey ..."
|
|
|
|
echo -e ">>> Generating RSA hostkey ..."
|
|
|
@ -103,6 +105,7 @@ StartUp() {
|
|
|
|
dropbearkey -t dss -f /etc/dropbear/dropbear_dss_host_key
|
|
|
|
dropbearkey -t dss -f /etc/dropbear/dropbear_dss_host_key
|
|
|
|
echo -e ""
|
|
|
|
echo -e ""
|
|
|
|
dropbear
|
|
|
|
dropbear
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
#// Misc tasks
|
|
|
|
#// Misc tasks
|
|
|
|
chmod +x /bin/net-setup
|
|
|
|
chmod +x /bin/net-setup
|
|
|
|