aredn/files/usr/local/bin/spawn_sysupgrade

6 lines
127 B
Bash
Executable File

#!/bin/sh
/sbin/sysupgrade -d 7 -f /tmp/arednsysupgradebackup.tgz -q $1 2>&1
rc=$?; if [[ $rc != 0 ]]; then /sbin/reboot; fi