summaryrefslogtreecommitdiffstats
path: root/scull/scull.init
diff options
context:
space:
mode:
authorJavier Martinez Canillas <javier@dowhile0.org>2013-12-23 05:34:48 -0800
committerJavier Martinez Canillas <javier@dowhile0.org>2013-12-23 05:34:48 -0800
commit7a41714d7d6f9d4e2298b10020367a810a08c03f (patch)
tree85db476e98b0c78eb21801d2fd43054bca852fe8 /scull/scull.init
parent114b758b22d3dc9baae6559323fdf4ba7efedb67 (diff)
parent8841360a79f36a7027a914575d8f1791a0d3a734 (diff)
downloadldd3-7a41714d7d6f9d4e2298b10020367a810a08c03f.tar.gz
Merge pull request #7 from ttousai/master
Fixed failure to load scull module and description typo in scull.init.
Diffstat (limited to 'scull/scull.init')
-rwxr-xr-xscull/scull.init10
1 files changed, 5 insertions, 5 deletions
diff --git a/scull/scull.init b/scull/scull.init
index e0523ce..3ac7339 100755
--- a/scull/scull.init
+++ b/scull/scull.init
@@ -1,5 +1,5 @@
#!/bin/bash
-# Sample init script for the a driver module <rubini@linux.it>
+# Sample init script for the scull driver module <rubini@linux.it>
DEVICE="scull"
SECTION="misc"
@@ -88,10 +88,10 @@ function remove_files () {
# Load and create files
function load_device () {
- if [ -f $MODDIR/$DEVICE.o ]; then
- devpath=$MODDIR/$DEVICE.o
- else if [ -f ./$DEVICE.o ]; then
- devpath=./$DEVICE.o
+ if [ -f $MODDIR/$DEVICE.ko ]; then
+ devpath=$MODDIR/$DEVICE.ko
+ else if [ -f ./$DEVICE.ko ]; then
+ devpath=./$DEVICE.ko
else
devpath=$DEVICE; # let insmod/modprobe guess
fi; fi