diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2024-02-08 22:02:58 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2024-02-08 22:02:58 +0100 |
commit | 4944968bc2fe4eb5573aba89ea074dcfba0dcb12 (patch) | |
tree | 0e6794b101c0fabb0554a425188fe17c4623df2c /daemons/runsystem.hurd.sh.in | |
parent | ad95a0b7185664655acdfb8e4d35db0a1d63d1e0 (diff) | |
download | hurd-4944968bc2fe4eb5573aba89ea074dcfba0dcb12.tar.gz hurd-4944968bc2fe4eb5573aba89ea074dcfba0dcb12.tar.bz2 hurd-4944968bc2fe4eb5573aba89ea074dcfba0dcb12.zip |
runsystem: do not require bash
So that people can install just dash.
Diffstat (limited to 'daemons/runsystem.hurd.sh.in')
-rw-r--r-- | daemons/runsystem.hurd.sh.in | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/daemons/runsystem.hurd.sh.in b/daemons/runsystem.hurd.sh.in index 9ce350b4..2d016b13 100644 --- a/daemons/runsystem.hurd.sh.in +++ b/daemons/runsystem.hurd.sh.in @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # # This program is run by /hurd/init at boot time after the essential # servers are up, and is responsible for running the "userland" parts of a @@ -35,18 +35,18 @@ runttys_sigs='TERM INT HUP TSTP' # If we get a SIGLOST, attempt to reopen the console in case # our console ports were revoked. This lets us print messages. -function reopen_console () +reopen_console () { exec 1>/dev/console 2>&1 || exit 3 } -trap 'reopen_console' SIGLOST +trap 'reopen_console' 32 # SIGLOST = server died on GNU # Call this when we are losing badly enough that we want to punt normal # startup entirely. We exec a single-user shell, so we will not come back # here. The only way to get to multi-user from that shell will be # explicitly exec this script or something like that. -function singleuser () +singleuser () { test $# -eq 0 || echo "$0: $*" for try in ${fallback_shells}; do |