Browse Source

- skel-root/hd2: try to fix auto-reset of var partition

master
vanhofen 6 years ago
parent
commit
f79df26094
  1. 4
      skel-root/coolstream/hd2/etc/init.d/var_mount.sh

4
skel-root/coolstream/hd2/etc/init.d/var_mount.sh

@ -37,8 +37,8 @@ else
SHOWINFO "failed to mount /var"
rmdir /var && mv /var_init /var
else
if [ ! -f /var/tuxbox/config/flash.start ]; then
SHOWINFO "NI image not found! Initializing factory reset..."
if ! grep -q "neutrino-images" /var/etc/update.urls; then
SHOWINFO "Seems not to be NI. Initializing factory reset..."
SHOWINFO "unmount var-partition..."
umount -lf /dev/mtdblock$VARBLOCK
SHOWINFO "erase var-partition /dev/$VARDEV"

Loading…
Cancel
Save