POSTIN
/bin/sh
# script for launch of tun. Important, tun is available as module with mdk9.0
# launch tun if it is'nt still
if ! (lsmod | grep -q tun) then
echo "Launching tun."; modprobe tun; result=$?
if [ "$result" ]; then
echo "Error launching tun !"
fi
else
echo "Tun module is still running."
fi
# initialise launching of tun at boot time
if ! (grep -q tun -r /etc/modules) then
echo "Adding tun in /etc/modules ."
echo tun >> /etc/modules
else
echo "Tun already in /etc/modules, nothing to do."
fi