Update sysupgrade

pull/77/head
p0isk 2021-12-07 11:20:08 +03:00
parent efd5502355
commit 9d48846bd1
1 changed files with 1 additions and 8 deletions

View File

@ -130,18 +130,11 @@ do
esac
done
if [ $remotely -eq 1 ] && [ $locally -eq 1 ] || [ $usage -eq 1 ]; then
if [ $remotely -eq $locally ] || [ $usage -eq 1 ]; then
print_usage
exit 1
fi
[ $locally -eq 0 ] && remotely=1
if [ $update_kernel -eq 0 ] && [ $update_rootfs -eq 0 ] && [ $locally -eq 0 ]; then
update_kernel=1
update_rootfs=1
fi
[ -z "${kernel_file}" ] && kernel_file="/tmp/uImage.${soc}"
[ -z "${rootfs_file}" ] && rootfs_file="/tmp/rootfs.squashfs.${soc}"