From 7f32fc4e018bd5253c85acb022251eb99df755c3 Mon Sep 17 00:00:00 2001 From: joerg Date: Sat, 16 Nov 1996 22:42:13 +0000 Subject: Provide a symlink for /bin/sh when the fixit floppy is mounted, so scripts using #!/bin/sh (like /mnt2/dev/MAKEDEV) will work. Observed by: andreas --- release/sysinstall/install.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'release') diff --git a/release/sysinstall/install.c b/release/sysinstall/install.c index aa92cbd..0869830 100644 --- a/release/sysinstall/install.c +++ b/release/sysinstall/install.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: install.c,v 1.140 1996/11/12 18:39:35 jkh Exp $ + * $Id: install.c,v 1.141 1996/11/14 05:46:22 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -285,6 +285,9 @@ installFixitFloppy(dialogMenuItem *self) "be essentially usable."); } } + if (!directory_exists("/bin")) + (void)Mkdir("/bin"); + (void)symlink("/stand/sh", "/bin/sh"); /* Link the /etc/ files */ if (DITEM_STATUS(Mkdir("/etc")) != DITEM_SUCCESS) msgConfirm("Unable to create an /etc directory! Things are weird on this floppy.."); -- cgit v1.1