diff options
author | jkh <jkh@FreeBSD.org> | 1999-03-11 09:38:06 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1999-03-11 09:38:06 +0000 |
commit | 0fdf27c6b41015be24be6412e54e97c3b79df3ce (patch) | |
tree | f60a50efcfe6e1d241b563f65c6aebd85704d4a8 /usr.sbin | |
parent | ffb312a7f14bbdd40d509e57f951b70974ce7a35 (diff) | |
download | FreeBSD-src-0fdf27c6b41015be24be6412e54e97c3b79df3ce.zip FreeBSD-src-0fdf27c6b41015be24be6412e54e97c3b79df3ce.tar.gz |
Make proper symlinks for fixit mode and ELF binaries.
Noticed by: jdp
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/sade/install.c | 17 | ||||
-rw-r--r-- | usr.sbin/sysinstall/install.c | 17 |
2 files changed, 24 insertions, 10 deletions
diff --git a/usr.sbin/sade/install.c b/usr.sbin/sade/install.c index a01120c..f8a6d59 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.228 1999/02/14 21:26:28 jkh Exp $ + * $Id: install.c,v 1.229 1999/02/15 00:49:33 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -314,14 +314,21 @@ installFixitCDROM(dialogMenuItem *self) } } - /* Yet another iggly hardcoded pathname. */ + /* Yet more iggly hardcoded pathnames. */ + Mkdir("/usr/libexec"); if (!file_readable("/usr/libexec/ld.so")) { - Mkdir("/usr/libexec"); - if (symlink("/mnt2/usr/libexec/ld.so", "/usr/libexec/ld.so")) { - msgConfirm("Warning: could not create the symlink for ld.so.\n" + if (symlink("/mnt2/usr/libexec/ld.so", "/usr/libexec/ld.so")) + msgDebug("Couldn't link to ld.so - not necessarily a problem for ELF\n"); + } + if (!file_readable("/usr/libexec/ld-elf.so.1")) { + if (symlink("/mnt2/usr/libexec/ld-elf.so.1", "/usr/libexec/ld-elf.so.1")) { + msgConfirm("Warning: could not create the symlink for ld-elf.so.1\n" "Dynamic executables from the CDROM likely won't work."); } } + /* optional nicety */ + if (!file_readable("/usr/bin/vi")) + symlink("/mnt2/usr/bin/vi", "/usr/bin/vi"); fixit_common(); mediaClose(); msgConfirm("Please remove the FreeBSD fixit CDROM now."); diff --git a/usr.sbin/sysinstall/install.c b/usr.sbin/sysinstall/install.c index a01120c..f8a6d59 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.228 1999/02/14 21:26:28 jkh Exp $ + * $Id: install.c,v 1.229 1999/02/15 00:49:33 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -314,14 +314,21 @@ installFixitCDROM(dialogMenuItem *self) } } - /* Yet another iggly hardcoded pathname. */ + /* Yet more iggly hardcoded pathnames. */ + Mkdir("/usr/libexec"); if (!file_readable("/usr/libexec/ld.so")) { - Mkdir("/usr/libexec"); - if (symlink("/mnt2/usr/libexec/ld.so", "/usr/libexec/ld.so")) { - msgConfirm("Warning: could not create the symlink for ld.so.\n" + if (symlink("/mnt2/usr/libexec/ld.so", "/usr/libexec/ld.so")) + msgDebug("Couldn't link to ld.so - not necessarily a problem for ELF\n"); + } + if (!file_readable("/usr/libexec/ld-elf.so.1")) { + if (symlink("/mnt2/usr/libexec/ld-elf.so.1", "/usr/libexec/ld-elf.so.1")) { + msgConfirm("Warning: could not create the symlink for ld-elf.so.1\n" "Dynamic executables from the CDROM likely won't work."); } } + /* optional nicety */ + if (!file_readable("/usr/bin/vi")) + symlink("/mnt2/usr/bin/vi", "/usr/bin/vi"); fixit_common(); mediaClose(); msgConfirm("Please remove the FreeBSD fixit CDROM now."); |