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 2081 by niro, Fri May 10 13:13:00 2013 UTC mcore-src/trunk/mcore-tools/dracut/run-mcored.sh.in revision 2321 by niro, Fri Jul 11 12:48:05 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
  # setup networking  
  info "Setup networking"  
  /usr/sbin/udhcpc eth0  
7   # print ip config   # print ip config
8   info "Current ip settings:"   info "Current ip settings:"
9   info "$(ip addr)"   info "$(ip addr)"
# Line 14  then Line 11  then
11   info "Remount /sysroot writeable"   info "Remount /sysroot writeable"
12   mount -oremount,rw /sysroot   mount -oremount,rw /sysroot
13   # start mcored   # start mcored
14     echo "Starting mcore daemon"
15   info "Starting mcore daemon"   info "Starting mcore daemon"
16   export MROOT=/sysroot   export MROOT=/sysroot
17   . /etc/conf.d/mcored   . @@CONFDDIR@@/mcored
18   /usr/sbin/sslsvd -U ${SSL_USER} -/ ${CHROOT_DIR} \   @@SBINDIR@@/sslsvd -U ${SSL_USER} -/ ${CHROOT_DIR} \
19   -Z ${SSL_CERT} -K ${SSL_KEY} \   -Z ${SSL_CERT} -K ${SSL_KEY} \
20   0 6666 /usr/sbin/mcored   0 6666 @@SBINDIR@@/mcored
21   # remount sysroot read-only   # remount sysroot read-only
22   info "Remount /sysroot read-only"   info "Remount /sysroot read-only"
23   mount -oremount,ro /sysroot   mount -oremount,ro /sysroot

Legend:
Removed from v.2081  
changed lines
  Added in v.2321