Skip to content

Instantly share code, notes, and snippets.

@bryanwb
Forked from anonymous/gist:4583954
Last active December 11, 2015 09:59
Show Gist options
  • Save bryanwb/4583957 to your computer and use it in GitHub Desktop.
Save bryanwb/4583957 to your computer and use it in GitHub Desktop.
# /sbin/ifup
# add to top of file
for k in `ps -ef | grep dhclient | awk '{print $2}'`
do
echo $k 2> /dev/null
kill -9 $k
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment