aboutsummaryrefslogtreecommitdiffstats
path: root/main/syslinux
diff options
context:
space:
mode:
authorDubiousjim <dubiousjim@gmail.com>2013-06-29 16:41:24 -0400
committerNatanael Copa <ncopa@alpinelinux.org>2013-06-30 11:19:33 +0000
commit589d7d3981b9de2534cb5b4f9c6567425319341e (patch)
treea5c718ed820a2df142e1b4b0a70f09df20498e38 /main/syslinux
parent64e8c06cb5a27278c4c7a99dc64b4456baa77d20 (diff)
downloadaports-589d7d3981b9de2534cb5b4f9c6567425319341e.tar.bz2
aports-589d7d3981b9de2534cb5b4f9c6567425319341e.tar.xz
main/syslinux: reorganize menu layout
Add a blank line between any entries added from /etc/update-extlinux.d/*. Move the memtest entry (if any) after a separator line, below these.
Diffstat (limited to 'main/syslinux')
-rwxr-xr-xmain/syslinux/update-extlinux14
1 files changed, 9 insertions, 5 deletions
diff --git a/main/syslinux/update-extlinux b/main/syslinux/update-extlinux
index 014df1bbe9..0dc360170b 100755
--- a/main/syslinux/update-extlinux
+++ b/main/syslinux/update-extlinux
@@ -134,20 +134,24 @@ for kernel in $(find /boot -name "vmlinuz-*" -type f); do
lst=$(($lst + 1))
done
+everbose "$lst entries found."
+
+for entry in /etc/update-extlinux.d/*; do
+ [ -f "$entry" ] && { cat $entry; echo ""; } >> $conf.new
+done
+
+echo "MENU SEPARATOR" >> $conf.new
+echo "" >> $conf.new
+
if [ -f "/boot/memtest" ]; then
everbose "Found memtest86+: /boot/memtest"
echo "LABEL memtest" >> $conf.new
echo " MENU LABEL Memtest86+" >> $conf.new
echo " KERNEL memtest" >> $conf.new
echo "" >> $conf.new
- lst=$(($lst + 1))
fi
-everbose "$lst entries found."
-for entry in /etc/update-extlinux.d/*; do
- [ -f "$entry" ] && cat $entry >> $conf.new
-done
if [ "$overwrite" != "1" ]; then
exit 0