4 DIR="/#SYSCONFDIR#/firststart.d"
5 DIR_OVERLAY_LOWER="/media/rfs/ro"
7 remove_startup_link () {
8 if [ -n "`which update-rc.d`" ]; then
9 update-rc.d -f firststart remove
13 if ! [ -d $DIR ]; then
18 # check if we have a ro overlay or if we can write changes directly
19 if [ -e "$DIR_OVERLAY_LOWER" ]; then
20 # using meta-readonly-rootfs-overlay
21 mount $DIR_OVERLAY_LOWER -o remount,rw
25 rm -r $DIR_OVERLAY_LOWER/$DIR
26 rm $DIR_OVERLAY_LOWER/#SYSCONFDIR#/rc*.d/S*firststart
27 rm $DIR_OVERLAY_LOWER/#SYSCONFDIR#/init.d/firststart
28 mount $DIR_OVERLAY_LOWER -o remount,ro