Skip to content

Instantly share code, notes, and snippets.

@jamespo
Created June 21, 2012 10:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamespo/2965045 to your computer and use it in GitHub Desktop.
Save jamespo/2965045 to your computer and use it in GitHub Desktop.
Quick script to bring Redhat network interfaces up
#!/bin/bash
cd /etc/sysconfig/network-scripts
for if in ifcfg-eth0*
do
if [[ ! $if =~ "backup" ]]; then
ifup ${if/ifcfg-}
echo $if
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment