diff --git a/packages/sysutils/busybox/scripts/fs-resize b/packages/sysutils/busybox/scripts/fs-resize index d889642b43..6ca06042e0 100755 --- a/packages/sysutils/busybox/scripts/fs-resize +++ b/packages/sysutils/busybox/scripts/fs-resize @@ -18,6 +18,15 @@ ################################################################################ if [ -e /storage/.please_resize_me ] ; then + # this sh** was never intended to be used + # on already installed and runing system + if [ -d /storage/.kodi -o -d /storage/.config -o -d /storage/.cache ] ; then + rm -f /storage/.please_resize_me + sync + echo "resizing not allowed. rebooting in 15s" + sleep 15 + reboot -f + fi # get the disk. /storage on 2nd partition PART=$(grep "/storage " /proc/mounts | cut -d" " -f1 | grep '2$')