Skip to content
Permalink
Browse files

zipit-base-files: update Makefile and add dropbear init script

Signed-off-by: Joe Honold <mozzwald@gmail.com>
  • Loading branch information
mozzwald committed Jun 4, 2016
1 parent 81628d8 commit 1884c0308c9a0df937555c2ec5c149c3203bf95b
Showing with 29 additions and 0 deletions.
  1. +4 −0 zipit-base-files/Makefile
  2. +25 −0 zipit-base-files/files/etc/init.d/S55dropbear
@@ -54,7 +54,11 @@ define Package/zipit-base-files/install
mkdir -p $(1)/usr/lib
mkdir -p $(1)/usr/bin
mkdir -p $(1)/usr/sbin
mkdir -p $(1)/usr/local
mkdir -p $(1)/usr/local/bin
mkdir -p $(1)/usr/local/sbin
mkdir -p $(1)/usr/share
mkdir -p $(1)/usr/share/sounds
rm -f $(1)/var
$(LN) /tmp $(1)/var
$(LN) /tmp/resolv.conf $(1)/etc/
@@ -0,0 +1,25 @@
#!/bin/sh
#
# Start dropbear
#

case "$1" in
start)
if [ ! -s /etc/dropbear/dropbear_rsa_host_key ]; then
# Make sure rsa key is not empty or you won't
# be able to connect via ssh
rm /etc/dropbear/dropbear_rsa_host_key
fi
/usr/sbin/dropbear -R
;;
stop)
killall dropbear
;;
restart|reload)
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac

exit $?

0 comments on commit 1884c03

Please sign in to comment.