From 8841360a79f36a7027a914575d8f1791a0d3a734 Mon Sep 17 00:00:00 2001 From: Davis Abubakr-Sadik Nii Nai Date: Wed, 18 Dec 2013 01:24:34 +0000 Subject: Fixed failure to load scull module and description typo in scull.init. The scull.init initialization file fails to load scull module because it tries to load modules in the configured paths with .o suffix instead of .ko. --- scull/scull.init | 10 +++++----- 1 file 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 +# Sample init script for the scull driver module 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 -- cgit v1.2.1-18-gbd029