1
0
forked from sneak/hacks
Files
hacks/fix-raspian-defaults/rc.local.txt
2019-10-04 06:41:13 -07:00

11 lines
245 B
Bash

#!/bin/sh # can't assume bash yet
if [ ! -d /boot/root ]; then
logger -s -t rc.local.txt cant find root overlay in /boot
else
rsync -avP /boot/root/ / && \
rm -rf /boot/root /boot/rc.local.txt # we only need to run once
fi
reboot