summaryrefslogtreecommitdiffstats
path: root/main/syslinux/update-extlinux
diff options
context:
space:
mode:
Diffstat (limited to 'main/syslinux/update-extlinux')
-rwxr-xr-xmain/syslinux/update-extlinux16
1 files changed, 10 insertions, 6 deletions
diff --git a/main/syslinux/update-extlinux b/main/syslinux/update-extlinux
index 66bc0edc7..0ba4bbf21 100755
--- a/main/syslinux/update-extlinux
+++ b/main/syslinux/update-extlinux
@@ -169,18 +169,22 @@ if [ -f "/boot/reboot.c32" ]; then
echo "" >> $conf.new
fi
+if cmp --quiet $conf.new $conf; then
+ everbose "Configuration unchanged."
+ rm $conf.new
+fi
if [ "$overwrite" != "1" ]; then
exit 0
-fi
+elif [ -f "$conf.new" ]; then
+ # keep a backup just in case
+ if [ -f "$conf" ]; then
+ mv $conf $conf.old
+ fi
-# keep a backup just in case
-if [ -f "$conf" ]; then
- mv $conf $conf.old
+ mv $conf.new $conf
fi
-mv $conf.new $conf
-
everbose "Installing libutil.c32 libcom32.c32 mboot.c32 menu.c32 vesamenu.c32 to /boot."
cp /usr/share/syslinux/libutil.c32 \
/usr/share/syslinux/libcom32.c32 \