Small bugfixes regarding firstrun/resize2fs and BT on BPi M2+

This commit is contained in:
ThomasKaiser
2016-06-08 22:40:33 +02:00
parent 031cac1564
commit 2ff6fc6819
3 changed files with 10 additions and 9 deletions

View File

@@ -37,7 +37,8 @@ fi
case "$1" in
start)
if [[ $rootfstype == ext4 && ! -f "/root/.no_rootfs_resize" ]]; then
/sbin/resize2fs $device >>${Log} 2>&1
echo -e "\n### [resize2fs] Start resizing partition now\n" >>/var/log/armhwinfo.log
/sbin/resize2fs $device >>/var/log/armhwinfo.log 2>&1
fi
if [[ ! -f "/var/swap" ]]; then
dd if=/dev/zero of=/var/swap bs=1024 count=131072 status=noxfer >/dev/null 2>&1