diff options
| author | bnewbold <bnewbold@robocracy.org> | 2013-08-23 07:07:53 +0000 |
|---|---|---|
| committer | bnewbold <bnewbold@robocracy.org> | 2013-08-23 07:07:53 +0000 |
| commit | 7dc85612036542d3a0e5bf3f54d7240c4e310d4b (patch) | |
| tree | 39f8df92d699515b016a940203d3ac0fa1e5d760 /polystrap/novena/hooks/firstboot | |
| parent | 163df8584fc6d1f722b1dfd9204c6d4a1978778f (diff) | |
| download | buildroot-novena-7dc85612036542d3a0e5bf3f54d7240c4e310d4b.tar.gz buildroot-novena-7dc85612036542d3a0e5bf3f54d7240c4e310d4b.zip | |
polystrap: update novena config
Diffstat (limited to 'polystrap/novena/hooks/firstboot')
| -rw-r--r--[l---------] | polystrap/novena/hooks/firstboot | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/polystrap/novena/hooks/firstboot b/polystrap/novena/hooks/firstboot index d9788123d..7f1119e3c 120000..100644 --- a/polystrap/novena/hooks/firstboot +++ b/polystrap/novena/hooks/firstboot @@ -1 +1,23 @@ -../../default/hooks/firstboot
\ No newline at end of file +cat > $ROOTDIR/etc/init.d/firstboot << __END__ +#!/bin/sh -e +### BEGIN INIT INFO +# Provides: firstboot +# Required-Start: \$all +# Required-Stop: +# Default-Start: S +# Default-Stop: +### END INIT INFO + +for f in rsa dsa ecdsa; do rm -rf /etc/ssh/ssh_host_\${f}_key; done +echo "generating ssh rsa key..." +ssh-keygen -q -t rsa -f /etc/ssh/ssh_host_rsa_key -C "" -N "" +echo "generating ssh dsa key..." +ssh-keygen -q -t dsa -f /etc/ssh/ssh_host_dsa_key -C "" -N "" +echo "generating ssh ecdsa key..." +ssh-keygen -q -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key -C "" -N "" + +update-rc.d -f firstboot remove +__END__ + +chmod +x $ROOTDIR/etc/init.d/firstboot +fakechroot chroot $ROOTDIR update-rc.d firstboot start 99 S |
