From: Ben Gras Date: Thu, 2 Feb 2006 18:20:09 +0000 (+0000) Subject: Save name of cd drive for package manager X-Git-Tag: v3.1.2a~388 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/static/style.css?a=commitdiff_plain;h=f088bc5c6d8c40931057d03d20897c96c6fd56fe;p=minix.git Save name of cd drive for package manager --- diff --git a/commands/scripts/setup.sh b/commands/scripts/setup.sh index 68bff0814..da3da0f26 100755 --- a/commands/scripts/setup.sh +++ b/commands/scripts/setup.sh @@ -617,6 +617,8 @@ installboot -d /dev/$root /usr/mdec/bootblock /boot/boot >/dev/null || exit edparams /dev/$root "rootdev=$root; ramimagedev=$root; $disable; minix(1,Start MINIX 3 (requires at least 16 MB RAM)) { unset image; boot; }; smallminix(2,Start Small MINIX 3 (intended for 8 MB RAM systems)) { image=/boot/image_small; ramsize=0; boot; }; main() { echo By default, MINIX 3 will automatically load in 3 seconds.; echo Press ESC to enter the monitor for special configuration.; trap 3000 boot; menu; }; save" || exit pfile="/mnt/src/tools/fdbootparams" echo "rootdev=$root; ramimagedev=$root; $disable; save" >$pfile +# Save name of CD drive +echo "cddrive=`mount | grep usr | awk '{ print $1 }'`" >>/mnt/etc/rc.package sync