Magellan Linux

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

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

mcore-src/trunk/mcore-tools/dracut/run-mcored.sh revision 2094 by niro, Fri Sep 27 07:47:47 2013 UTC mcore-src/trunk/mcore-tools/dracut/run-mcored.sh.in revision 2323 by niro, Fri Jul 11 12:53:02 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 @@SBINDIR@@/sslsvd -a -x @@SBINDIR@@/mcored -a -f @@CONFDDIR@@/mcored ]
4  then  then
5   if getargbool 1 rd.mcored   if getargbool 1 rd.mcored && getargbool 0 rd.neednet && NEEDNET=1
6   then   then
7   . /lib/dracut-lib.sh   # print ip config
8   . /lib/net-lib.sh   info "Current ip settings:"
9     info "$(ip addr)"
10   _myiface="${find_iface_with_link}"   # remont /sysroot writeable
11   if [[ -n ${_myiface} ]]   info "Remount /sysroot writeable"
12   then   mount -oremount,rw /sysroot
13   # setup networking   # start mcored
14   info "Setup networking"   echo "Starting mcore daemon"
15   /usr/bin/ip link set "${_myiface}" up   info "Starting mcore daemon"
16   /usr/sbin/udhcpc -i "${_myiface}"   export MROOT=/sysroot
17   # print ip config   . @@CONFDDIR@@/mcored
18   info "Current ip settings:"   @@SBINDIR@@/sslsvd -U ${SSL_USER} -/ ${CHROOT_DIR} \
19   info "$(ip addr)"   -Z ${SSL_CERT} -K ${SSL_KEY} \
20   # remont /sysroot writeable   0 6666 @@SBINDIR@@/mcored
21   info "Remount /sysroot writeable"   # remount sysroot read-only
22   mount -oremount,rw /sysroot   info "Remount /sysroot read-only"
23   # start mcored   mount -oremount,ro /sysroot
  info "Starting mcore daemon"  
  export MROOT=/sysroot  
  . /etc/conf.d/mcored  
  /usr/sbin/sslsvd -U ${SSL_USER} -/ ${CHROOT_DIR} \  
  -Z ${SSL_CERT} -K ${SSL_KEY} \  
  0 6666 /usr/sbin/mcored  
  # remount sysroot read-only  
  info "Remount /sysroot read-only"  
  mount -oremount,ro /sysroot  
  fi  
24   fi   fi
25  fi  fi

Legend:
Removed from v.2094  
changed lines
  Added in v.2323