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