From 3bde7df3c107d22e6a8431f81669f239cf601c59 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Tue, 13 Dec 2005 19:42:16 +0000 Subject: [PATCH] Don't try to twiddle /etc/inittab on systems that don't have /etc/inittab. --- webcit/ChangeLog | 3 +++ webcit/setup.c | 9 +++++++++ 2 files changed, 12 insertions(+) diff --git a/webcit/ChangeLog b/webcit/ChangeLog index 188def570..37529ee9b 100644 --- a/webcit/ChangeLog +++ b/webcit/ChangeLog @@ -1,5 +1,8 @@ $Id$ +Tue Dec 13 14:41:50 EST 2005 ajc +* Don't try to twiddle /etc/inittab on systems that don't have /etc/inittab. + Tue Dec 13 14:27:24 EST 2005 ajc * chatframeset.html: inserted a missing tag. diff --git a/webcit/setup.c b/webcit/setup.c index cfdc7a9c4..69fad9757 100644 --- a/webcit/setup.c +++ b/webcit/setup.c @@ -620,6 +620,15 @@ int main(int argc, char *argv[]) cleanup(0); } + /* If we're on something BSDish then we don't have inittab */ + if (access("/etc/inittab", F_OK)) { + important_message("Not running SysV style init", + "WebCit Setup can only run on systems that use /etc/inittab.\n" + "Please manually configure your startup scripts to run WebCit\n" + "when the system is booted.\n"); + cleanup(0); + } + /* Get started in a valid setup directory. */ strcpy(setup_directory, WEBCITDIR); if ( (using_web_installer) && (getenv("WEBCIT") != NULL) ) { -- 2.39.2