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 2071 by niro, Wed May 8 16:01:57 2013 UTC mcore-src/trunk/mcore-tools/dracut/run-mcored.sh.in revision 2327 by niro, Fri Jul 11 13:15:12 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 ]  need_remount=0
4    
5    if [ -x @@SBINDIR@@/sslsvd -a -x @@SBINDIR@@/mcored -a -f @@CONFDDIR@@/mcored ]
6  then  then
7   if getargbool 1 rd.mcored   if getargbool 1 rd.mcored && getargbool 0 rd.neednet && NEEDNET=1
8   then   then
  # setup networking  
  info "Setup networking"  
  /usr/sbin/udhcpc eth0  
9   # print ip config   # print ip config
10   info "Current ip settings:"   echo "Current ip settings:"
11   info "$(ip addr)"   echo "$(ip addr)"
12     [ -w / ] || need_remount=1
13     if [[ ${need_remount} = 1 ]]
14     then
15     # remount /sysroot writeable
16     echo "Remount /sysroot writeable"
17     mount -oremount,rw /sysroot
18     else
19     echo "Already a rw filesystem, remount not required"
20     fi
21   # start mcored   # start mcored
22   info "Starting mcore daemon"   echo "Starting mcore daemon"
23   . /etc/conf.d/mcored   export MROOT=/sysroot
24   /usr/sbin/sslsvd -U ${SSL_USER} -/ ${CHROOT_DIR} \   . @@CONFDDIR@@/mcored
25     @@SBINDIR@@/sslsvd -U ${SSL_USER} -/ ${CHROOT_DIR} \
26   -Z ${SSL_CERT} -K ${SSL_KEY} \   -Z ${SSL_CERT} -K ${SSL_KEY} \
27   0 6666 /usr/sbin/mcored   0 6666 @@SBINDIR@@/mcored
28     if [[ ${need_remount} = 1 ]]
29     then
30     # remount sysroot read-only
31     echo "Remount /sysroot read-only"
32     mount -oremount,ro /sysroot
33     fi
34   fi   fi
35  fi  fi

Legend:
Removed from v.2071  
changed lines
  Added in v.2327