diff options
author | Judd Vinet <judd@archlinux.org> | 2005-11-23 01:58:50 +0000 |
---|---|---|
committer | Judd Vinet <judd@archlinux.org> | 2005-11-23 01:58:50 +0000 |
commit | d8df29152b8401e4c56a07b8920f34fdf9252bc1 (patch) | |
tree | d30734293dcade93112acac6f8841f52e0cfb50b /hwdetect | |
parent | fca87ebae05b19c0da51c1b996f4bddad82c3115 (diff) | |
download | initscripts-d8df29152b8401e4c56a07b8920f34fdf9252bc1.tar.xz |
added check for /sys/devices
Diffstat (limited to 'hwdetect')
-rwxr-xr-x | hwdetect | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |