aboutsummaryrefslogtreecommitdiff
path: root/hwdetect
diff options
context:
space:
mode:
authorJudd Vinet <judd@archlinux.org>2005-11-23 01:58:50 +0000
committerJudd Vinet <judd@archlinux.org>2005-11-23 01:58:50 +0000
commitd8df29152b8401e4c56a07b8920f34fdf9252bc1 (patch)
treed30734293dcade93112acac6f8841f52e0cfb50b /hwdetect
parentfca87ebae05b19c0da51c1b996f4bddad82c3115 (diff)
downloadinitscripts-d8df29152b8401e4c56a07b8920f34fdf9252bc1.tar.xz
added check for /sys/devices
Diffstat (limited to 'hwdetect')
-rwxr-xr-xhwdetect5
1 files changed, 5 insertions, 0 deletions
diff --git a/hwdetect b/hwdetect
index 533cc0d..dc7587e 100755
--- a/hwdetect
+++ b/hwdetect
@@ -34,6 +34,11 @@ usage () {
[ "$1" == "" ] && usage
+if ! [ -d /sys/devices ]; then
+ echo "/sys/devices is not present -- mount /sys first" >&2
+ exit 1
+fi
+
: >/tmp/modules-plain
: >/tmp/modules-stripped
: >/tmp/modules-sorted