Skip to content

Instantly share code, notes, and snippets.

@a-nldisr
Last active August 29, 2015 14:05
Show Gist options
  • Save a-nldisr/a1230ac30dc74c1c3707 to your computer and use it in GitHub Desktop.
Save a-nldisr/a1230ac30dc74c1c3707 to your computer and use it in GitHub Desktop.
case "$1" in
down)
/bin/echo "Bringing interface down"
/usr/sbin/ifdown eth0
;;
up)
/bin/echo "Bringing interface up"
/usr/sbin/ifup eth0
;;
update)
/bin/echo "And this is an Update"
/usr/sbin/ifdown eth0
/usr/sbin/ifup eth0
;;
*)
/bin/echo moooooooo
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment