From 6094955e365886e5005d9f559b031e9e79ad674d Mon Sep 17 00:00:00 2001 From: Gerrit Pape Date: Sun, 30 Dec 2001 16:34:28 +0000 Subject: 0.2.6. --- etc/openbsd/1 | 7 +++++++ etc/openbsd/2 | 2 ++ etc/openbsd/3 | 24 ++++++++++++++++++++++++ etc/openbsd/ctrlaltdel | 8 ++++++++ etc/openbsd/getty-ttyC4/run | 2 ++ 5 files changed, 43 insertions(+) create mode 100755 etc/openbsd/1 create mode 100755 etc/openbsd/2 create mode 100755 etc/openbsd/3 create mode 100755 etc/openbsd/ctrlaltdel create mode 100755 etc/openbsd/getty-ttyC4/run (limited to 'etc') diff --git a/etc/openbsd/1 b/etc/openbsd/1 new file mode 100755 index 0000000..06681e4 --- /dev/null +++ b/etc/openbsd/1 @@ -0,0 +1,7 @@ +#!/bin/sh +# system one time tasks +rm -f /etc/runit/stopit + +/bin/sh /etc/rc autoboot + +exit 0 diff --git a/etc/openbsd/2 b/etc/openbsd/2 new file mode 100755 index 0000000..9966e42 --- /dev/null +++ b/etc/openbsd/2 @@ -0,0 +1,2 @@ +#!/bin/sh +exec /command/svscanboot diff --git a/etc/openbsd/3 b/etc/openbsd/3 new file mode 100755 index 0000000..c382337 --- /dev/null +++ b/etc/openbsd/3 @@ -0,0 +1,24 @@ +#!/bin/sh + +echo 'Stopping getties...' +/command/svc -d /service/getty-* +/command/svwaitdown -t14 /service/getty-* || \ + ( echo 'Killing getties...' ; /command/svc -k /service/getty-* ) + +echo 'Stopping services...' +/command/svc -d /service/* +/command/svwaitdown -t350 /service/* || \ + ( echo 'Killing services...' ; /command/svc -k /service/* ) + +echo 'Stopping log services...' +/command/svc -d /service/*/log +/command/svwaitdown -t35 /service/*/log + +echo 'Shutdown...' +if test -r /etc/runit/reboot; then + /sbin/reboot +else + /sbin/halt +fi + +exit 0 diff --git a/etc/openbsd/ctrlaltdel b/etc/openbsd/ctrlaltdel new file mode 100755 index 0000000..aa62a01 --- /dev/null +++ b/etc/openbsd/ctrlaltdel @@ -0,0 +1,8 @@ +#!/bin/sh +MSG="System is going down in 14 seconds..." + +echo 'disabled.' ; exit + +/bin/touch /etc/runit/stopit && \ + /bin/echo "$MSG" | /usr/bin/wall +/bin/sleep 14 diff --git a/etc/openbsd/getty-ttyC4/run b/etc/openbsd/getty-ttyC4/run new file mode 100755 index 0000000..c1d9cb9 --- /dev/null +++ b/etc/openbsd/getty-ttyC4/run @@ -0,0 +1,2 @@ +#!/bin/sh +exec /usr/libexec/getty Pc ttyC4 -- cgit 1.4.1