diff options
author | joerg <joerg@FreeBSD.org> | 1996-11-16 22:42:13 +0000 |
---|---|---|
committer | joerg <joerg@FreeBSD.org> | 1996-11-16 22:42:13 +0000 |
commit | 7f32fc4e018bd5253c85acb022251eb99df755c3 (patch) | |
tree | 1bb5789c23ce17e54f5df5b7538d1d61c59ff2af | |
parent | 2930ea50f41f27550a27252cefcf321c269094d0 (diff) | |
download | FreeBSD-src-7f32fc4e018bd5253c85acb022251eb99df755c3.zip FreeBSD-src-7f32fc4e018bd5253c85acb022251eb99df755c3.tar.gz |
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
-rw-r--r-- | release/sysinstall/install.c | 5 | ||||
-rw-r--r-- | usr.sbin/sade/install.c | 5 | ||||
-rw-r--r-- | usr.sbin/sysinstall/install.c | 5 |
3 files changed, 12 insertions, 3 deletions
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.."); diff --git a/usr.sbin/sade/install.c b/usr.sbin/sade/install.c index aa92cbd..0869830 100644 --- a/usr.sbin/sade/install.c +++ b/usr.sbin/sade/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.."); diff --git a/usr.sbin/sysinstall/install.c b/usr.sbin/sysinstall/install.c index aa92cbd..0869830 100644 --- a/usr.sbin/sysinstall/install.c +++ b/usr.sbin/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.."); |