Update sysupgrade

pull/77/head
p0isk 2021-12-07 09:19:46 +03:00
parent 61658e45aa
commit efd5502355
1 changed files with 7 additions and 7 deletions

View File

@ -65,7 +65,7 @@ print_usage() {
echo "Usage: ./sysupgrade [-option]" echo "Usage: ./sysupgrade [-option]"
echo "options:" echo "options:"
echo "Remotely:" echo "Remotely:"
echo " -k updatee kernel" echo " -k update kernel"
echo " -r update rootfs" echo " -r update rootfs"
echo " --url=URL URL for update file (.tgz format)" echo " --url=URL URL for update file (.tgz format)"
echo "Locally:" echo "Locally:"
@ -130,16 +130,16 @@ do
esac esac
done done
if [ $usage -eq 1 ] || [ $remotely -eq 1 ] && [ $locally -eq 1 ]; then if [ $remotely -eq 1 ] && [ $locally -eq 1 ] || [ $usage -eq 1 ]; then
print_usage; print_usage
exit 1; exit 1
fi fi
[ $locally -eq 0 ] && remotely=1 [ $locally -eq 0 ] && remotely=1
if [ $update_kernel -eq 0 ] && [ $update_rootfs -eq 0 ] && [ $locally -eq 0 ]; then if [ $update_kernel -eq 0 ] && [ $update_rootfs -eq 0 ] && [ $locally -eq 0 ]; then
update_kernel=1; update_kernel=1
update_rootfs=1; update_rootfs=1
fi fi
[ -z "${kernel_file}" ] && kernel_file="/tmp/uImage.${soc}" [ -z "${kernel_file}" ] && kernel_file="/tmp/uImage.${soc}"