Skip to content

Commit

Permalink
Merge pull request martinezjavier#7 from ttousai/master
Browse files Browse the repository at this point in the history
Fixed failure to load scull module and description typo in scull.init.
  • Loading branch information
martinezjavier committed Dec 23, 2013
2 parents 114b758 + 8841360 commit 7a41714
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scull/scull.init
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7a41714

Please sign in to comment.