Thanks for the feature request on the grml-mailinglist, Tong.
Something like the following (but use lsb-infrastructure instead of echo):
#!/bin/sh
case "$1" in
start)
echo "Starting kqemu: "
/sbin/modprobe kqemu major=0 load the kernel module
mknod /dev/kqemu c 250 0 # create the device
chmod 666 /dev/kqemu /dev/net/tun # adjust permissions
;;
stop)
echo "Stopping kqemu: "
/sbin/rmmod kqemu
;;
restart)
/sbin/modprobe kqemu major=0
;;
*)
;;
esac |