#!/bin/bash PROG="$1" case "$PROG" in suspend) /sbin/ifconfig |grep eth0 if [ $? ]; then touch /tmp/.eth0.lock /etc/sysconfig/network-scripts/ifdown eth0 > /dev/null fi ;; standby) /sbin/ifconfig |grep eth0 if [ $? ]; then touch /tmp/.eth0.lock /etc/sysconfig/network-scripts/ifdown eth0 fi ;; resume) if [ -f /tmp/.eth0.lock ]; then rm /tmp/.eth0.lock /etc/sysconfig/network-scripts/ifup eth0 fi #if [ -f ~/.applet ]; #logger "Je suis ici" #then sh -c 'mixer_applet --activate-goad-server mixer_applet --goad-fd 18 &' >/dev/null #logger "Je suis la" #fi ;; esac exit 0