#!/bin/sh

. /etc/init.d/splash-utils.sh

${SPLASH} prg 40
${SPLASH} clear_log
${SPLASH} log "Starting network services..."

#portmap &
#telnetd

if [ -e /sbin/dropbear ]; then
    if [ ! -e /etc/dropbear/dropbear_rsa_host_key ]; then
        mkdir -p /etc/dropbear
        dropbearkey -t rsa -s 2048 -f /etc/dropbear/dropbear_rsa_host_key
        dropbearkey -t ed25519 -f /etc/dropbear/dropbear_ed25519_host_key
    fi
    dropbear
fi
