diff options
author | jhb <jhb@FreeBSD.org> | 2002-11-27 19:37:00 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2002-11-27 19:37:00 +0000 |
commit | 045f25753aa468cf2387d350ee1c589776a65334 (patch) | |
tree | b187ec3ca106b956fe4746a7cad96529509ca1d4 /usr.sbin | |
parent | cf60e9b4b99cac9378b5a4b6ceafbbc1ee25248f (diff) | |
download | FreeBSD-src-045f25753aa468cf2387d350ee1c589776a65334.zip FreeBSD-src-045f25753aa468cf2387d350ee1c589776a65334.tar.gz |
- Add a configOSF1() function (#ifdef __alpha__) that creates /compat/osf1
in addition to setting osf1_enable to YES.
- Only define configLinux() #ifdef WITH_LINUX.
Approved by: re
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/sade/config.c | 13 | ||||
-rw-r--r-- | usr.sbin/sade/sade.h | 6 | ||||
-rw-r--r-- | usr.sbin/sysinstall/config.c | 13 | ||||
-rw-r--r-- | usr.sbin/sysinstall/sysinstall.h | 6 |
4 files changed, 38 insertions, 0 deletions
diff --git a/usr.sbin/sade/config.c b/usr.sbin/sade/config.c index d10e7ae..5075f48 100644 --- a/usr.sbin/sade/config.c +++ b/usr.sbin/sade/config.c @@ -463,6 +463,7 @@ configUsers(dialogMenuItem *self) return DITEM_SUCCESS; } +#ifdef WITH_LINUX int configLinux(dialogMenuItem *self) { @@ -477,6 +478,18 @@ configLinux(dialogMenuItem *self) restorescr(w); return i; } +#endif + +#ifdef __alpha__ +int +configOSF1(dialogMenuItem *self) +{ + + variable_set2(VAR_OSF1_ENABLE, "YES", 1); + Mkdir("/compat/osf1"); + return DITEM_SUCCESS; +} +#endif int configSecurity(dialogMenuItem *self) diff --git a/usr.sbin/sade/sade.h b/usr.sbin/sade/sade.h index 6865809..d3777e1 100644 --- a/usr.sbin/sade/sade.h +++ b/usr.sbin/sade/sade.h @@ -171,6 +171,7 @@ #define VAR_NO_HOME "noHome" #define VAR_NONINTERACTIVE "nonInteractive" #define VAR_NOVELL "novell" +#define VAR_OSF1_ENABLE "osf1_enable" #define VAR_NTPDATE_FLAGS "ntpdate_flags" #define VAR_PACKAGE "package" #define VAR_PARTITION "partition" @@ -480,8 +481,13 @@ extern int configResolv(dialogMenuItem *self); extern int configPackages(dialogMenuItem *self); extern int configSaver(dialogMenuItem *self); extern int configSaverTimeout(dialogMenuItem *self); +#ifdef WITH_LINUX extern int configLinux(dialogMenuItem *self); +#endif extern int configNTP(dialogMenuItem *self); +#ifdef __alpha__ +extern int configOSF1(dialogMenuItem *self); +#endif extern int configUsers(dialogMenuItem *self); extern int configXSetup(dialogMenuItem *self); extern int configXDesktop(dialogMenuItem *self); diff --git a/usr.sbin/sysinstall/config.c b/usr.sbin/sysinstall/config.c index d10e7ae..5075f48 100644 --- a/usr.sbin/sysinstall/config.c +++ b/usr.sbin/sysinstall/config.c @@ -463,6 +463,7 @@ configUsers(dialogMenuItem *self) return DITEM_SUCCESS; } +#ifdef WITH_LINUX int configLinux(dialogMenuItem *self) { @@ -477,6 +478,18 @@ configLinux(dialogMenuItem *self) restorescr(w); return i; } +#endif + +#ifdef __alpha__ +int +configOSF1(dialogMenuItem *self) +{ + + variable_set2(VAR_OSF1_ENABLE, "YES", 1); + Mkdir("/compat/osf1"); + return DITEM_SUCCESS; +} +#endif int configSecurity(dialogMenuItem *self) diff --git a/usr.sbin/sysinstall/sysinstall.h b/usr.sbin/sysinstall/sysinstall.h index 6865809..d3777e1 100644 --- a/usr.sbin/sysinstall/sysinstall.h +++ b/usr.sbin/sysinstall/sysinstall.h @@ -171,6 +171,7 @@ #define VAR_NO_HOME "noHome" #define VAR_NONINTERACTIVE "nonInteractive" #define VAR_NOVELL "novell" +#define VAR_OSF1_ENABLE "osf1_enable" #define VAR_NTPDATE_FLAGS "ntpdate_flags" #define VAR_PACKAGE "package" #define VAR_PARTITION "partition" @@ -480,8 +481,13 @@ extern int configResolv(dialogMenuItem *self); extern int configPackages(dialogMenuItem *self); extern int configSaver(dialogMenuItem *self); extern int configSaverTimeout(dialogMenuItem *self); +#ifdef WITH_LINUX extern int configLinux(dialogMenuItem *self); +#endif extern int configNTP(dialogMenuItem *self); +#ifdef __alpha__ +extern int configOSF1(dialogMenuItem *self); +#endif extern int configUsers(dialogMenuItem *self); extern int configXSetup(dialogMenuItem *self); extern int configXDesktop(dialogMenuItem *self); |