hacks/fix-raspian-defaults/rc.local.txt

14 lines
420 B
Plaintext
Raw Normal View History

2019-10-04 13:41:13 +00:00
#!/bin/sh # can't assume bash yet
2019-10-04 13:46:23 +00:00
if [ ! -d /boot/root.overlay ]; then
2019-10-04 13:41:13 +00:00
logger -s -t rc.local.txt cant find root overlay in /boot
else
2019-10-04 13:46:23 +00:00
rsync -avP /boot/root.overlay/ /
2019-10-04 13:57:35 +00:00
ln -s /etc/systemd/system/raspberrypi-initial-setup.service \
/etc/systemd/system/multi-user.target.wants/raspberrypi-initial-setup.service
# we only need to run once
rm -rf /boot/rc.local.txt /boot/root.overlay
2019-10-04 13:41:13 +00:00
fi
reboot