Sophie

Sophie

distrib > Mandriva > 2007.1 > x86_64 > media > contrib-release > by-pkgid > 51fd2a1af8326975cd93e3b046857adb > scriptlet

penggy-0.2.1-4mdk.x86_64.rpm

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