summaryrefslogtreecommitdiff
path: root/init.d.Linux/clock
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/clock
parent0364bb2c84bff631e0f765254fc6bf3353950128 (diff)
downloadopenrc-42bfd7b6dc6d1ebc49c1c6b24e21772df4f6967b.tar.gz
openrc-42bfd7b6dc6d1ebc49c1c6b24e21772df4f6967b.tar.bz2
openrc-42bfd7b6dc6d1ebc49c1c6b24e21772df4f6967b.tar.xz
Move the shell code to check for RC_SYS to the keywords dependency.
Diffstat (limited to 'init.d.Linux/clock')
-rwxr-xr-xinit.d.Linux/clock22
1 files changed, 9 insertions, 13 deletions
diff --git a/init.d.Linux/clock b/init.d.Linux/clock
index a6305e9..03e5b13 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