##// END OF EJS Templates
comment-cleanup, net-cleanup, size-calc-fix, split-more, menuconfig
comment-cleanup, net-cleanup, size-calc-fix, split-more, menuconfig

Fichier de la dernière révision:

r67:4aa8ac698568
r71:b855bcffebe1
Show More
50-firstboot.sh
29 lines | 754 B | application/x-sh | BashLexer
#
# First boot actions
#
# Load utility functions
. ./functions.sh
# Prepare rc.firstboot script
cat files/firstboot/10-begin.sh > $R/etc/rc.firstboot
# Ensure openssh server host keys are regenerated on first boot
if [ "$ENABLE_SSHD" = true ] ; then
cat files/firstboot/21-generate-ssh-keys.sh >> $R/etc/rc.firstboot
rm -f $R/etc/ssh/ssh_host_*
fi
# Prepare filesystem auto expand
if [ "$EXPANDROOT" = true ] ; then
cat files/firstboot/22-expandroot.sh >> $R/etc/rc.firstboot
fi
# Finalize rc.firstboot script
cat files/firstboot/99-finish.sh >> $R/etc/rc.firstboot
chmod +x $R/etc/rc.firstboot
# Add rc.firstboot script to rc.local
sed -i '/exit 0/d' $R/etc/rc.local
echo /etc/rc.firstboot >> $R/etc/rc.local
echo exit 0 >> $R/etc/rc.local