From f79df26094ea642fb4672ff5280d66e2436ef903 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Sun, 27 Jan 2019 20:56:58 +0100 Subject: [PATCH] - skel-root/hd2: try to fix auto-reset of var partition --- skel-root/coolstream/hd2/etc/init.d/var_mount.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/skel-root/coolstream/hd2/etc/init.d/var_mount.sh b/skel-root/coolstream/hd2/etc/init.d/var_mount.sh index 9d857899..6ac5ea9b 100755 --- a/skel-root/coolstream/hd2/etc/init.d/var_mount.sh +++ b/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"