#!/bin/bash # basic background on this feature # see: https://github.com/rootzoll/raspiblitz/issues/936 # get basic system information # these are the same set of infos the WebGUI dialog/controler has source /home/admin/raspiblitz.info &2 echo "# DONE - please reboot" else echo "# FAIL to execute on ${baseimage}: ${resizeRaspbian}" echo "err='expand failed'" exit 1 fi elif [ "${baseimage}" = "armbian" ]; then resizeArmbian="/usr/lib/armbian/armbian-resize-filesystem" if [ -x ${resizeArmbian} ]; then echo "# RUNNING EXPAND ARMBIAN: ${resizeArmbian}" sudo $resizeArmbian start 1>&2 echo "# DONE - please reboot" else echo "# FAIL to execute on ${baseimage}: ${resizeArmbian}" echo "err='expand failed'" exit 1 fi else echo "#FAIL no implementation for: ${baseimage}" echo "err='missing implementation'" exit 1 fi exit 0 fi echo "err='unknown parameter'" exit 1