aboutsummaryrefslogtreecommitdiff
path: root/init.d.Linux
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-02-19 14:29:20 +0000
committerRoy Marples <roy@marples.name>2008-02-19 14:29:20 +0000
commit42bfd7b6dc6d1ebc49c1c6b24e21772df4f6967b (patch)
treeb9e514617292c7ad1bf8df15b262beb42278e0f4 /init.d.Linux
parent0364bb2c84bff631e0f765254fc6bf3353950128 (diff)
Move the shell code to check for RC_SYS to the keywords dependency.
Diffstat (limited to 'init.d.Linux')
-rwxr-xr-xinit.d.Linux/clock22
-rwxr-xr-xinit.d.Linux/consolefont8
-rwxr-xr-xinit.d.Linux/keymaps8
-rwxr-xr-xinit.d.Linux/modules3
-rw-r--r--init.d.Linux/sysctl2
5 files changed, 14 insertions, 29 deletions
diff --git a/init.d.Linux/clock b/init.d.Linux/clock
index a6305e92..03e5b133 100755
--- a/init.d.Linux/clock
+++ b/init.d.Linux/clock
@@ -28,25 +28,21 @@ depend()
else
before *
fi
+ keywords nouml novps noxenu
}
setupopts()
{
- case "${RC_SYS}" in
- UML|VPS|XENU)
- utc="${RC_SYS}"
+ case "$(uname -m)" in
+ s390*)
+ utc="s390"
;;
*)
- case "$(uname -m)" in
- s390*)
- utc="s390"
- ;;
- *)
- if [ -e /proc/devices ] && grep -q " cobd$" /proc/devices; then
- utc="coLinux"
- fi
- ;;
- esac
+ if [ -e /proc/devices ] && \
+ grep -q " cobd$" /proc/devices
+ then
+ utc="coLinux"
+ fi
;;
esac
diff --git a/init.d.Linux/consolefont b/init.d.Linux/consolefont
index e2d06392..28a2cdb0 100755
--- a/init.d.Linux/consolefont
+++ b/init.d.Linux/consolefont
@@ -9,6 +9,7 @@ depend()
need localmount
need keymaps # sets up terminal encoding scheme
after hotplug
+ keywords nouml novps noxenu
}
start()
@@ -16,13 +17,6 @@ start()
# Forget about any font until we are successful
rm -rf "${RC_LIBDIR}"/console
- case "${RC_SYS}" in
- UML|VPS|XENU)
- ewarn "Not loading consolefont for ${RC_SYS} systems"
- return 0
- ;;
- esac
-
ttyn=${rc_tty_number:-${RC_TTY_NUMBER:-12}}
consolefont=${consolefont:-${CONSOLEFONT}}
unicodemap=${unicodemap:-${UNICODEMAP}}
diff --git a/init.d.Linux/keymaps b/init.d.Linux/keymaps
index fb7d9b2d..a60a949a 100755
--- a/init.d.Linux/keymaps
+++ b/init.d.Linux/keymaps
@@ -15,17 +15,11 @@ dumpkeys_charset=${dumpkeys_charset:-${DUMPKEYS_CHARSET}}
depend()
{
need localmount
+ keywords nouml novps noxenu
}
start()
{
- case "${RC_SYS}" in
- UML|VPS|XENU)
- ewarn "Not loading keymaps for ${RC_SYS} systems"
- return 0
- ;;
- esac
-
if [ -z "${keymap}" ]; then
eerror "You need to setup keymap in /etc/conf.d/keymaps first"
return 1
diff --git a/init.d.Linux/modules b/init.d.Linux/modules
index f4f9a895..f29d0a15 100755
--- a/init.d.Linux/modules
+++ b/init.d.Linux/modules
@@ -7,13 +7,14 @@ description="Loads a user defined list of kernel modules."
depend()
{
use isapnp
+ keywords novps
}
start()
{
# Should not fail if kernel do not have module
# support compiled in ...
- [ ! -f /proc/modules -o "${RC_SYS}" = "VPS" ] && return 0
+ [ ! -f /proc/modules ] && return 0
local KV=$(uname -r)
local KV_MAJOR=${KV%%.*}
diff --git a/init.d.Linux/sysctl b/init.d.Linux/sysctl
index d56bf93b..81dced9e 100644
--- a/init.d.Linux/sysctl
+++ b/init.d.Linux/sysctl
@@ -6,11 +6,11 @@ depend()
{
use hostname
before bootmisc logger
+ keywords novps
}
start()
{
- [ "${RC_SYS}" = "VPS" ] && return 0
[ -e /etc/sysctl.conf ] || return 0
ebegin "Configuring kernel parameters"
sysctl -p /etc/sysctl.conf >/dev/null