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 2093 by niro, Fri May 10 13:13:00 2013 UTC revision 2094 by niro, Fri Sep 27 07:47:47 2013 UTC
# Line 4  if [ -x /usr/sbin/sslsvd -a -x /usr/sbin Line 4  if [ -x /usr/sbin/sslsvd -a -x /usr/sbin
4  then  then
5   if getargbool 1 rd.mcored   if getargbool 1 rd.mcored
6   then   then
7   # setup networking   . /lib/dracut-lib.sh
8   info "Setup networking"   . /lib/net-lib.sh
9   /usr/sbin/udhcpc eth0  
10   # print ip config   _myiface="${find_iface_with_link}"
11   info "Current ip settings:"   if [[ -n ${_myiface} ]]
12   info "$(ip addr)"   then
13   # remont /sysroot writeable   # setup networking
14   info "Remount /sysroot writeable"   info "Setup networking"
15   mount -oremount,rw /sysroot   /usr/bin/ip link set "${_myiface}" up
16   # start mcored   /usr/sbin/udhcpc -i "${_myiface}"
17   info "Starting mcore daemon"   # print ip config
18   export MROOT=/sysroot   info "Current ip settings:"
19   . /etc/conf.d/mcored   info "$(ip addr)"
20   /usr/sbin/sslsvd -U ${SSL_USER} -/ ${CHROOT_DIR} \   # remont /sysroot writeable
21   -Z ${SSL_CERT} -K ${SSL_KEY} \   info "Remount /sysroot writeable"
22   0 6666 /usr/sbin/mcored   mount -oremount,rw /sysroot
23   # remount sysroot read-only   # start mcored
24   info "Remount /sysroot read-only"   info "Starting mcore daemon"
25   mount -oremount,ro /sysroot   export MROOT=/sysroot
26     . /etc/conf.d/mcored
27     /usr/sbin/sslsvd -U ${SSL_USER} -/ ${CHROOT_DIR} \
28     -Z ${SSL_CERT} -K ${SSL_KEY} \
29     0 6666 /usr/sbin/mcored
30     # remount sysroot read-only
31     info "Remount /sysroot read-only"
32     mount -oremount,ro /sysroot
33     fi
34   fi   fi
35  fi  fi

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