#!/bin/sh

PREREQ="udev"

prereqs() {
    echo "$PREREQ"
}

case "$1" in
    prereqs)
        prereqs
        exit 0
    ;;
esac

[ "$IP" != off -a "$IP" != none -a -x /sbin/dropbear ] || exit 0

. /scripts/functions
log_begin_msg "Starting dropbear"

. /conf/initramfs.conf

configure_networking

opts="${DROPBEAR_OPTIONS:-$PKGOPTION_dropbear_OPTION}"
exec /sbin/dropbear $opts -s -P /run/dropbear.pid
