summaryrefslogtreecommitdiff
path: root/pid2/loader.sh
diff options
context:
space:
mode:
authorGuillermo Ramos2011-08-10 22:43:05 +0200
committerGuillermo Ramos2011-08-10 22:43:05 +0200
commita722d196c465bae07075819a8bdfb9e9376d2651 (patch)
tree560016efba95aff18637c5c7ee8ce7b623cb931f /pid2/loader.sh
parent00d5bce9f24e2114316bd1165ebdad05644b7365 (diff)
downloadlkm-a722d196c465bae07075819a8bdfb9e9376d2651.tar.gz
AƱadidos pidevice y hang
Diffstat (limited to 'pid2/loader.sh')
-rw-r--r--pid2/loader.sh23
1 files changed, 0 insertions, 23 deletions
diff --git a/pid2/loader.sh b/pid2/loader.sh
deleted file mode 100644
index 579acff..0000000
--- a/pid2/loader.sh
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/bin/bash
-module="pidevice"
-device="pidevice"
-mode="644"
-
-insmod ./$module.ko $* || exit -1
-
-rm -f /dev/${device}[0-4]
-
-major=$(cat /proc/devices | grep $module | cut -f 1)
-
-echo major
-exit -1
-
-for i in {0..3}; do
- mknod /dev/${device}$i c $major $i
-done
-
-group="staff"
-grep -q '^staff:' /etc/group || group="wheel"
-
-chgrp $group /dev/${device}[0-3]
-chmod $mode /dev/${device}[0-3]