mirror of https://github.com/OpenIPC/firmware.git
wording
parent
b7eeb93186
commit
130c725f01
|
@ -108,9 +108,9 @@ free_resources() {
|
||||||
|
|
||||||
self_update() {
|
self_update() {
|
||||||
if echo "${args}" | grep "rootfs" || echo "${args}" | grep "kernel" || echo "${args}" | grep -- "-n" >/dev/null 2>&1; then
|
if echo "${args}" | grep "rootfs" || echo "${args}" | grep "kernel" || echo "${args}" | grep -- "-n" >/dev/null 2>&1; then
|
||||||
echo -e "\nOffline upgrade or Overlay clean, skip sysupgrade version check."
|
echo -e "\nOffline operations."
|
||||||
else
|
else
|
||||||
echo -e "\nOnline upgrade, checking sysupgrade version..."
|
echo -e "\nChecking for sysupgrade update..."
|
||||||
curl -s -k -L -o /tmp/sysupgrade "https://raw.githubusercontent.com/OpenIPC/firmware/master/general/overlay/usr/sbin/sysupgrade"
|
curl -s -k -L -o /tmp/sysupgrade "https://raw.githubusercontent.com/OpenIPC/firmware/master/general/overlay/usr/sbin/sysupgrade"
|
||||||
if [ -f /tmp/sysupgrade ] && grep -q "#!/bin/sh" /tmp/sysupgrade; then
|
if [ -f /tmp/sysupgrade ] && grep -q "#!/bin/sh" /tmp/sysupgrade; then
|
||||||
dstv=$(grep scr_version /tmp/sysupgrade | head -1 | cut -f 2 -d '=')
|
dstv=$(grep scr_version /tmp/sysupgrade | head -1 | cut -f 2 -d '=')
|
||||||
|
@ -121,10 +121,10 @@ self_update() {
|
||||||
exec /tmp/sysupgrade ${args}
|
exec /tmp/sysupgrade ${args}
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
echo "Ok, version match."
|
echo "Same version. No update required."
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo -e "\nVersion check failed. Possible network connection problem, script is corrupt or not found. Continue with bundled version."
|
echo -e "\nVersion checking failed, proceeding with the installed version."
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue