aredn/files/usr/local/bin/spawn_sysupgrade

13 lines
247 B
Plaintext
Raw Normal View History

#!/bin/sh
egrep "/tmp.*size=6656k" /proc/mounts > /dev/null
if [ $? -eq 0 ]
then
mount tmpfs /tmp -o remount,size=10240K
fi
/sbin/sysupgrade -d 7 -f /tmp/arednsysupgradebackup.tgz -q "$1" 2>&1
rc=$?; if [ $rc != 0 ]; then /sbin/reboot; fi