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 2239 by niro, Sat Jan 11 00:21:51 2014 UTC revision 2240 by niro, Sat Jan 11 00:40:11 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 -a -f /etc/conf.d/network ]  if [ -x @@SBINDIR@@/sslsvd -a -x @@SBINDIR@@/mcored -a -x @@SBINDIR@@/udhcpc -a -f @@CONFDDIR@@/mcored -a -f @@CONFDDIR@/network ]
4  then  then
5   if getargbool 1 rd.mcored   if getargbool 1 rd.mcored
6   then   then
7   . /lib/dracut-lib.sh   . /lib/dracut-lib.sh
8   . /lib/net-lib.sh   . /lib/net-lib.sh
9   . /etc/conf.d/network   . @@CONFDDIR@@/network
10    
11   # sane defaults   # sane defaults
12   [[ -z ${DEFAULT_DHCP_START} ]] && DEFAULT_DHCP_START="-T10 -t3 -n -x hostname:$(hostname) -i"   [[ -z ${DEFAULT_DHCP_START} ]] && DEFAULT_DHCP_START="-T10 -t3 -n -x hostname:$(hostname) -i"
# Line 16  then Line 16  then
16   then   then
17   # setup networking   # setup networking
18   info "Setup networking"   info "Setup networking"
19   /usr/bin/ip link set "${_myiface}" up   @@BINDIR@@/ip link set "${_myiface}" up
20   /usr/sbin/udhcpc ${DEFAULT_DHCP_START} "${_myiface}"   @@SBINDIR@@/udhcpc ${DEFAULT_DHCP_START} "${_myiface}"
21   # print ip config   # print ip config
22   info "Current ip settings:"   info "Current ip settings:"
23   info "$(ip addr)"   info "$(ip addr)"
# Line 27  then Line 27  then
27   # start mcored   # start mcored
28   info "Starting mcore daemon"   info "Starting mcore daemon"
29   export MROOT=/sysroot   export MROOT=/sysroot
30   . /etc/conf.d/mcored   . @@CONFDDIR@@/mcored
31   /usr/sbin/sslsvd -U ${SSL_USER} -/ ${CHROOT_DIR} \   @@SBINDIR@@/sslsvd -U ${SSL_USER} -/ ${CHROOT_DIR} \
32   -Z ${SSL_CERT} -K ${SSL_KEY} \   -Z ${SSL_CERT} -K ${SSL_KEY} \
33   0 6666 /usr/sbin/mcored   0 6666 @@SBINDIR@@/mcored
34   # remount sysroot read-only   # remount sysroot read-only
35   info "Remount /sysroot read-only"   info "Remount /sysroot read-only"
36   mount -oremount,ro /sysroot   mount -oremount,ro /sysroot

Legend:
Removed from v.2239  
changed lines
  Added in v.2240