firmware/build_patches/sysupgrade_no_config_save.patch
Tim Niemeyer 943164e854 Sysupgrade: rebase on new AA branch
Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
2013-02-02 00:52:21 +01:00

20 lines
729 B
Diff

Index: package/base-files/files/sbin/sysupgrade
===================================================================
--- package/base-files/files/sbin/sysupgrade (Revision 35186)
+++ package/base-files/files/sbin/sysupgrade (Arbeitskopie)
@@ -76,6 +76,15 @@
exit 1
}
+if [ "$SAVE_CONFIG" = "1" -a "$FORCE" = "0" ]; then
+ echo "Please let the image serve you with a new config."
+ echo "Use -n flag to get the new config!"
+ echo ""
+ echo "If you don't want to flash a Freifunk-Image you can force"
+ echo "a sysupgrade without -n using the -F parameter."
+ exit 1
+fi
+
[ -n "$ARGV" -a -n "$NEED_IMAGE" ] && {
cat <<-EOF
-b|--create-backup and -r|--restore-backup do not perform a firmware upgrade.