From 861bb4e571594f4c4be9a51b3e70178c78abffc2 Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Wed, 18 Apr 2012 16:30:06 +0200 Subject: [PATCH] update_bootcfg: fix: generate absolute paths --- commands/update_bootcfg/update_bootcfg.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/commands/update_bootcfg/update_bootcfg.sh b/commands/update_bootcfg/update_bootcfg.sh index 8c653b694..dc443ac5f 100755 --- a/commands/update_bootcfg/update_bootcfg.sh +++ b/commands/update_bootcfg/update_bootcfg.sh @@ -5,6 +5,7 @@ ROOT=`printroot -r` DEFAULTCFG=/etc/boot.cfg.default LOCALCFG=/etc/boot.cfg.local TMP=/boot.cfg.temp +DIRSBASE=/boot/minix filter_missing_entries() { @@ -47,12 +48,12 @@ then latest=`basename \`stat -f "%Y" /boot/minix_latest\`` fi -[ -d /boot/minix ] && for i in `ls /boot/minix/` +[ -d $DIRSBASE ] && for i in `ls $DIRSBASE/` do build_name="`basename $i`" if [ "$build_name" != "$latest" ] 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 done -- 2.44.0