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

revision 2042 by niro, Wed Apr 17 14:20:02 2013 UTC revision 2081 by niro, Fri May 10 13:13:00 2013 UTC
# Line 2  Line 2 
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 ]
4  then  then
5   # setup networking   if getargbool 1 rd.mcored
6   /usr/sbin/udhcpc eth0   then
7   # start mcored   # setup networking
8   . /etc/conf.d/mcored   info "Setup networking"
9   /usr/sbin/sslsvd -U ${SSL_USER} -/ ${CHROOT_DIR} \   /usr/sbin/udhcpc eth0
10   -Z ${SSL_CERT} -K ${SSL_KEY} \   # print ip config
11   0 6666 /usr/sbin/mcored   info "Current ip settings:"
12     info "$(ip addr)"
13     # remont /sysroot writeable
14     info "Remount /sysroot writeable"
15     mount -oremount,rw /sysroot
16     # start mcored
17     info "Starting mcore daemon"
18     export MROOT=/sysroot
19     . /etc/conf.d/mcored
20     /usr/sbin/sslsvd -U ${SSL_USER} -/ ${CHROOT_DIR} \
21     -Z ${SSL_CERT} -K ${SSL_KEY} \
22     0 6666 /usr/sbin/mcored
23     # remount sysroot read-only
24     info "Remount /sysroot read-only"
25     mount -oremount,ro /sysroot
26     fi
27  fi  fi

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