Hot answers tagged

1 vote

Writing bash script to reboot pi 10 times and log output

How are you keeping track of how many times you've booted? You'll probably need to save the count in a file. [[ -s boot_count ]] || echo "0" > boot_count n=$(cat boot_count) (( n += 1 )) ...
Waxrat's user avatar
  • 556

Only top scored, non community-wiki answers of a minimum length are eligible