update_bootcfg: fix: generate absolute paths

This commit is contained in:
Ben Gras 2012-04-18 16:30:06 +02:00
parent ed21b54203
commit 861bb4e571

View file

@ -5,6 +5,7 @@ ROOT=`printroot -r`
DEFAULTCFG=/etc/boot.cfg.default DEFAULTCFG=/etc/boot.cfg.default
LOCALCFG=/etc/boot.cfg.local LOCALCFG=/etc/boot.cfg.local
TMP=/boot.cfg.temp TMP=/boot.cfg.temp
DIRSBASE=/boot/minix
filter_missing_entries() filter_missing_entries()
{ {
@ -47,12 +48,12 @@ then
latest=`basename \`stat -f "%Y" /boot/minix_latest\`` latest=`basename \`stat -f "%Y" /boot/minix_latest\``
fi fi
[ -d /boot/minix ] && for i in `ls /boot/minix/` [ -d $DIRSBASE ] && for i in `ls $DIRSBASE/`
do do
build_name="`basename $i`" build_name="`basename $i`"
if [ "$build_name" != "$latest" ] if [ "$build_name" != "$latest" ]
then then
echo "menu=Start MINIX 3 ($build_name):load_mods $i/mod*;multiboot $i/kernel rootdevname=$rootdevname" >> /$TMP echo "menu=Start MINIX 3 ($build_name):load_mods $DIRSBASE/$i/mod*;multiboot $DIRSBASE/$i/kernel rootdevname=$rootdevname" >> /$TMP
fi fi
done done