Browse Source

- skel-root/hd51: fix conditions in resizerootfs

master
vanhofen 5 years ago
parent
commit
75f0467377
  1. 4
      skel-root/armbox/hd51/etc/init.d/resizerootfs

4
skel-root/armbox/hd51/etc/init.d/resizerootfs

@ -8,14 +8,14 @@
# Short-Description: Resizes once linuxrootfs and userdata to full partition size
### END INIT INFO
if [ ! -f "/.resize-linuxrootfs" ] & [ -e "/dev/block/by-name/linuxrootfs" ]
if [ ! -f "/.resize-linuxrootfs" ] && [ -e "/dev/block/by-name/linuxrootfs" ]
then
echo "Resizing linuxrootfs partition, Do not unplug power!..."
resize2fs /dev/block/by-name/linuxrootfs
touch "/.resize-linuxrootfs"
fi
if [ ! -f "/.resize-userdata" ] & [ -e "/dev/block/by-name/userdata" ] & [ -e "/sbin/blkid" ]; then
if [ ! -f "/.resize-userdata" ] && [ -e "/dev/block/by-name/userdata" ] && [ -x "/sbin/blkid" ]; then
if blkid /dev/block/by-name/userdata | grep "ext4"; then
echo "Resizing userdata partition, Do not unplug power!..."
resize2fs /dev/block/by-name/userdata

Loading…
Cancel
Save