aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2009-08-15 23:55:24 -0500
committerThomas Bächler <thomas@archlinux.org>2009-08-22 11:23:20 +0200
commitd1f86dbf7819a782df812dde8282a03ab1f82faf (patch)
treef809f5b3102530b0a13232302d7fb9770e9d16a8
parentac3baddf04b62e4bb55f7a2d0d34d78191ac815d (diff)
downloadinitscripts-d1f86dbf7819a782df812dde8282a03ab1f82faf.tar.xz
Remove USEDIRECTISA and associated code
man hwclock implies this option is rarely necessary, and (almost) all systems Arch supports surely have a /dev/rtc device and load the rtc driver in the kernel. Even if this is not available, hwclock will fall back to direct I/O requests anyway. As a side note, the adjtime cronjob didn't even respect this setting anyway. Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--rc.conf2
-rwxr-xr-xrc.shutdown3
-rwxr-xr-xrc.sysinit3
3 files changed, 0 insertions, 8 deletions
diff --git a/rc.conf b/rc.conf
index 7177902..b9495f8 100644
--- a/rc.conf
+++ b/rc.conf
@@ -8,7 +8,6 @@
#
# LOCALE: available languages can be listed with the 'locale -a' command
# HARDWARECLOCK: set to "UTC" or "localtime"
-# USEDIRECTISA: use direct I/O requests instead of /dev/rtc for hwclock
# TIMEZONE: timezones are found in /usr/share/zoneinfo
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
@@ -17,7 +16,6 @@
#
LOCALE="en_US.UTF-8"
HARDWARECLOCK="localtime"
-USEDIRECTISA="no"
TIMEZONE="Canada/Pacific"
KEYMAP="us"
CONSOLEFONT=
diff --git a/rc.shutdown b/rc.shutdown
index 39f762e..b0d8195 100755
--- a/rc.shutdown
+++ b/rc.shutdown
@@ -80,9 +80,6 @@ elif [ "$HARDWARECLOCK" = "localtime" ]; then
else
HWCLOCK_PARAMS=""
fi
-if [ "$USEDIRECTISA" = "yes" -o "$USEDIRECTISA" = "YES" ]; then
- HWCLOCK_PARAMS="$HWCLOCK_PARAMS --directisa"
-fi
if [ "$HWCLOCK_PARAMS" != "" ]; then
/sbin/hwclock $HWCLOCK_PARAMS
fi
diff --git a/rc.sysinit b/rc.sysinit
index 3a8fab2..322b512 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -47,9 +47,6 @@ if [ "$HARDWARECLOCK" = "UTC" ]; then
else
HWCLOCK_PARAMS="$HWCLOCK_PARAMS --localtime"
fi
-if [ "$USEDIRECTISA" = "yes" -o "$USEDIRECTISA" = "YES" ]; then
- HWCLOCK_PARAMS="$HWCLOCK_PARAMS --directisa"
-fi
# Set clock early to fix some bugs with filesystem checks
# Clock is set again later to match rc.conf