file: load
#!/bin/sh module="slh" device="slh" group="wheel" mode="664" # remove stale nodes rm -f /dev/${device}? # invoke insmod with all arguments we got /sbin/insmod -f $module $* || exit 1 major=`cat /proc/devices | awk "\\$2==\"$module\" {print \\$1}"` mknod /dev/${device} c $major 0 # give appropriate group/permissions chgrp $group /dev/${device} chmod $mode /dev/${device}
Back to Source File Index
C++ to HTML Conversion by ctoohtml