unRAIDServer.plg: copy/overwrite syslinux/syslinux.cfg- (all versions) and upgrade syslinux/syslinux.cfg to include GUI Mode boot option for versions < 6.2

This commit is contained in:
Eric Schultz
2016-03-05 12:18:39 -08:00
parent b0fe6c8dad
commit 42c54a7f84

View File

@@ -9,7 +9,7 @@
<!ENTITY category "beta">
<!ENTITY zip "https://s3.amazonaws.com/dnld.lime-technology.com/&category;/unRAIDServer-&version;-x86_64.zip">
<!ENTITY md5 "https://s3.amazonaws.com/dnld.lime-technology.com/&category;/unRAIDServer-&version;-x86_64.md5">
<!ENTITY files "bzimage,bzroot,make_bootable.bat,make_bootable_mac,memtest,*.txt">
<!ENTITY files "bzimage,bzroot,make_bootable.bat,make_bootable_mac,memtest,*.txt,syslinux/syslinux.cfg-">
<!ENTITY infozip "infozip-6.0-i486-1.txz">
]>
@@ -343,6 +343,10 @@ if [ "${version:0:3}" \&lt; "6.2" ]; then
if ! grep -q 'IMAGE_SIZE' /boot/config/domains.cfg &amp;&gt; /dev/null ; then
echo 'IMAGE_SIZE="1"' &gt;&gt; /boot/config/domains.cfg
fi
if ! grep -q '/bzroot-gui' /boot/syslinux/syslinux.cfg &amp;&gt; /dev/null ; then
sed -i 's|menu title Lime Technology\r|menu title Lime Technology, Inc.\r|g' /boot/syslinux/syslinux.cfg &amp;&gt; /dev/null
sed -i 's|label unRAID OS Safe Mode (no plugins)|label unRAID OS GUI Mode\r\n kernel /bzimage\r\n append initrd=/bzroot,/bzroot-gui\r\nlabel unRAID OS Safe Mode (no plugins, no GUI)|g' /boot/syslinux/syslinux.cfg &amp;&gt; /dev/null
fi
fi
# when upgrading any version prior to 6.1
if [ "${version:0:3}" \&lt; "6.1" ]; then