mirror of https://github.com/aredn/aredn.git
bugfix: sysupgrade needs more tmpfs space.
Increase space on tmpfs just before launching sysupgrade when the device has had tmpfs limited to 6.5mb Change-Id: I5b27e6812017c4cbe5d9cb3f53cb04d09892edf4
This commit is contained in:
parent
7d8496282b
commit
2415c56c3e
|
@ -1,5 +1,12 @@
|
|||
#!/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
|
||||
|
|
Loading…
Reference in New Issue