Magellan Linux

Diff of /mcore-src/trunk/mcore-tools/dracut/mcored/run-mcored.sh.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

mcore-src/trunk/mcore-tools/dracut/run-mcored.sh.in revision 2327 by niro, Fri Jul 11 13:15:12 2014 UTC mcore-src/trunk/mcore-tools/dracut/mcored/run-mcored.sh.in revision 2330 by niro, Fri Jul 11 13:58:30 2014 UTC
# Line 8  then Line 8  then
8   then   then
9   # print ip config   # print ip config
10   echo "Current ip settings:"   echo "Current ip settings:"
11     info "Current ip settings:"
12   echo "$(ip addr)"   echo "$(ip addr)"
13     info "$(ip addr)"
14   [ -w / ] || need_remount=1   [ -w / ] || need_remount=1
15   if [[ ${need_remount} = 1 ]]   if [[ ${need_remount} = 1 ]]
16   then   then
17   # remount /sysroot writeable   # remount /sysroot writeable
18   echo "Remount /sysroot writeable"   echo "Remount /sysroot writeable"
19     info "Remount /sysroot writeable"
20   mount -oremount,rw /sysroot   mount -oremount,rw /sysroot
21   else   else
22   echo "Already a rw filesystem, remount not required"   echo "Already a rw filesystem, remount not required"
23     info "Already a rw filesystem, remount not required"
24   fi   fi
25   # start mcored   # start mcored
26   echo "Starting mcore daemon"   echo "Starting mcore daemon"
27     info "Starting mcore daemon"
28   export MROOT=/sysroot   export MROOT=/sysroot
29   . @@CONFDDIR@@/mcored   . @@CONFDDIR@@/mcored
30   @@SBINDIR@@/sslsvd -U ${SSL_USER} -/ ${CHROOT_DIR} \   @@SBINDIR@@/sslsvd -U ${SSL_USER} -/ ${CHROOT_DIR} \
# Line 29  then Line 34  then
34   then   then
35   # remount sysroot read-only   # remount sysroot read-only
36   echo "Remount /sysroot read-only"   echo "Remount /sysroot read-only"
37     info "Remount /sysroot read-only"
38   mount -oremount,ro /sysroot   mount -oremount,ro /sysroot
39   fi   fi
40   fi   fi

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