echo "Usage: $0 module-id module-type b-major c-major"
exit 1
fi
- if [ "$2" -ne "12345607" ]; then
+ if [ "$2" -ne "12345607" -a "$2" -ne "12345600" ]; then
echo "$0: $2: bad module type"
exit 1
fi
rm -f /dev/ppp
# we "just know" that 37 is the major number of the clone driver
- mknod /dev/ppp c 37 $3
+ mknod /dev/ppp c 37 $4
chmod 644 /dev/ppp
exit 0
;;
id=`modstat | grep -w $mod | awk '{print $1}'`
if [ x$id = x ]; then
echo "$mod is not loaded."
- stat = 1
+ stat=1
else
modunload -id $id
fi
;;
*ppp.RMDEV)
- echo "$# args: $*"
+ rm -f /dev/ppp
exit 0
;;