Skip to content

Commit

Permalink
Merge pull request #161 from Laar3/patch-1
Browse files Browse the repository at this point in the history
Added support for using doas instead of sudo if sudo isnt there.
  • Loading branch information
Biktorgj authored Dec 1, 2022
2 parents 2528f1c + 2a38474 commit e4cd28d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tools/helpers/flashall
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
# reboot the modem into fastboot mode
# flash kernel + rootfs and reboot
echo "Sending AT+QFASTBOOT..."
sudo sh -c 'echo -ne "AT+QFASTBOOT\r" > /dev/ttyUSB2'
if [ $(id -u) -ne 0 ] ; then echo "This script must be run as root!" ; exit 1 ; fi
sh -c 'echo -ne "AT+QFASTBOOT\r" > /dev/ttyUSB2'
fastboot oem stay
fastboot flash aboot appsboot.mbn || exit "Failed to flash the bootloader"
fastboot reboot
Expand All @@ -15,4 +16,4 @@ fastboot flash:raw recovery boot-mdm9607.img || exit "Failed to flash recovery k
fastboot flash system rootfs-mdm9607.ubi || exit "Failed to flash the system partition"
fastboot flash recoveryfs recoveryfs.ubi || exit "Failed to flash the recovery partition"
fastboot reboot
echo "Done!"
echo "Done!"

0 comments on commit e4cd28d

Please sign in to comment.