add script for firstboot

updated yunohost-firstboot and installer
This commit is contained in:
root 2015-12-15 14:58:14 +00:00
parent 5580fd4133
commit 9f04bd1db8
2 changed files with 11 additions and 2 deletions

View file

@ -21,7 +21,7 @@ find /var/log -type f -exec echo > {} \;
echo "Purging apt ..."
apt-get --purge clean
echo "Removing myself ..."
echo > /etc/udev/rules.d/70-persistent-net.rules
update-rc.d -f yunohost-firstboot remove >/dev/null 2>&1
insserv -r /etc/init.d/yunohost-firstboot
rm -f /etc/init.d/yunohost-firstboot
echo "Rebooting ..."
reboot

9
build_arm_image/intsall_arm.sh Executable file
View file

@ -0,0 +1,9 @@
#!/bin/bash
# complete install with some specific ARM (raspberry) scripts.
#
# to be run for building an SD card image.
#
cp etc/init.d/yunohost-firstboot /etc/init.d/
chmod a+x /etc/init.d/yunohost-firstboot
insserv /etc/init.d/yunohost-firstboot