Magellan Linux

Diff of /mcore-src/trunk/mcore-tools/dracut/run-mcored.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2109 by niro, Fri Sep 27 07:47:47 2013 UTC revision 2110 by niro, Thu Jan 2 16:24:33 2014 UTC
# Line 1  Line 1 
1  #!/bin/sh  #!/bin/sh
2    
3  if [ -x /usr/sbin/sslsvd -a -x /usr/sbin/mcored -a -x /usr/sbin/udhcpc -a -f /etc/conf.d/mcored ]  if [ -x /usr/sbin/sslsvd -a -x /usr/sbin/mcored -a -x /usr/sbin/udhcpc -a -f /etc/conf.d/mcored -a -f /etc/conf.d/network ]
4  then  then
5   if getargbool 1 rd.mcored   if getargbool 1 rd.mcored
6   then   then
7   . /lib/dracut-lib.sh   . /lib/dracut-lib.sh
8   . /lib/net-lib.sh   . /lib/net-lib.sh
9     . /etc/conf.d/network
10    
11     # sane defaults
12     [[ -z ${DEFAULT_DHCP_START} ]] && DEFAULT_DHCP_START="-T10 -t3 -n -x hostname:$(hostname) -i"
13    
14   _myiface="${find_iface_with_link}"   _myiface="${find_iface_with_link}"
15   if [[ -n ${_myiface} ]]   if [[ -n ${_myiface} ]]
# Line 13  then Line 17  then
17   # setup networking   # setup networking
18   info "Setup networking"   info "Setup networking"
19   /usr/bin/ip link set "${_myiface}" up   /usr/bin/ip link set "${_myiface}" up
20   /usr/sbin/udhcpc -i "${_myiface}"   /usr/sbin/udhcpc ${DEFAULT_DHCP_START} "${_myiface}"
21   # print ip config   # print ip config
22   info "Current ip settings:"   info "Current ip settings:"
23   info "$(ip addr)"   info "$(ip addr)"

Legend:
Removed from v.2109  
changed lines
  Added in v.2110