~cbehrens/agent-smith/static-xenstore

« back to all changes in this revision

Viewing changes to scripts/configure_network.sh

  • Committer: Chris Behrens
  • Date: 2010-11-08 21:39:56 UTC
  • mfrom: (98.1.1 script-cleanup)
  • Revision ID: chris.behrens@rackspace.com-20101108213956-d074kl25i9yxw2y3
MergedĀ lp:~cbehrens/agent-smith/script-cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
104
104
 
105
105
if [ $BASH_SOURCE == $0 ]; then 
106
106
  get_interface_info
107
 
  case `${AGENTSMITHDIR}/detect_os.sh` in 
 
107
  our_os=`${AGENTSMITHDIR}/detect_os.sh`
 
108
  case $our_os in
108
109
    ("ubuntu"|"debian") 
109
110
        ubuntu_network_config 
110
111
 
112
113
          /etc/init.d/networking restart restart> /dev/null
113
114
        fi
114
115
        ;;
115
 
    ("redhat"|"fedora"|"oracle") 
 
116
    ("centos"|"redhat"|"fedora"|"oracle") 
116
117
        redhat_network_config 
117
118
 
118
119
        if [ ! $DEBUG ]; then 
134
135
          /etc/rc.d/network restart restart> /dev/null
135
136
        fi
136
137
        ;;
 
138
    (*) 
 
139
        echo "Unknown operating system detected (${our_os})"
 
140
        exit 1
 
141
        ;;
137
142
  esac
138
143
fi