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/ /
|
|
|
|
rm -rf /boot/rc.local.txt # we only need to run once
|
|
|
|
#FIXME also remove /boot/root.overlay dir when working
|
2019-10-04 13:41:13 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
reboot
|