#!/bin/sh

module="svblk"
device="svblk"
rootdev="svroot"
mode="664"
minors=16

if grep '^staff:' /etc/group > /dev/null; then
    group="staff"
else
    group="wheel"
fi

/sbin/insmod  $module.ko $* || exit 1

major=`cat /proc/devices | awk "\\$2==\"$rootdev\" {print \\$1}"`
#major=`cat /proc/devices | awk "\\$2==\"$module\" {print \\$1}"`

rm -f /dev/${device}[a-d]* /dev/${rootdev}
mknod /dev/${rootdev} c $major 0
