summaryrefslogtreecommitdiff
path: root/emulators/rtc/files/rtc.sh
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/rtc/files/rtc.sh')
-rw-r--r--emulators/rtc/files/rtc.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/emulators/rtc/files/rtc.sh b/emulators/rtc/files/rtc.sh
index 5fa3843be1f4..8751f46c710d 100644
--- a/emulators/rtc/files/rtc.sh
+++ b/emulators/rtc/files/rtc.sh
@@ -1,12 +1,13 @@
#!/bin/sh
-kmod=@@PREFIX@@/modules/rtc.ko
+kmoddir=@@PREFIX@@/modules
+kmod=rtc.ko
case "$1" in
start)
- if [ -x $kmod ]; then
+ if [ -x $kmoddir/$kmod ]; then
echo -n ' rtc'
- kldload $kmod
+ kldload $kmoddir/$kmod
fi
;;
stop)