#!/bin/bash
[[ "$1" == "prereqs" ]] && exit 0
. /usr/share/initramfs-tools/hook-functions

copy_exec "/usr/local/bin/setup-usbgadget-network.sh"
copy_exec "/bin/bash"
copy_exec "/bin/ip"
copy_exec "/usr/bin/nohup"
copy_exec "/usr/bin/unudhcpd"
copy_exec "/usr/bin/pgrep"
copy_exec "/usr/sbin/dropbear"
copy_exec "/usr/bin/pkill"
copy_exec "/usr/sbin/parted"
copy_file config "/etc/protocols"
copy_file config "/etc/shadow"

mkdir -p "${DESTDIR}/etc/dropbear"
