#!/bin/bash

# $1 = 'profile', 'sleep' or 'wakeup'
# $2 = 'ac' or 'battery'

case "$1" in
  profile)
  ;;
  sleep)
    ifconfig eth0 down
  ;;
  wakeup)
    ifconfig eth0 up
  ;;
esac

exit 0
