Magellan Linux

Diff of /mcore-src/trunk/mcore-tools/src/include/common.global.class.in

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

mcore-src/trunk/mcore-tools/daemon/include/common.global.class revision 2140 by niro, Fri Jan 10 12:02:07 2014 UTC mcore-src/trunk/mcore-tools/src/include/common.global.class.in revision 2347 by niro, Mon Aug 24 10:10:27 2015 UTC
# Line 84  decho() Line 84  decho()
84   eecho "DEBUG: ${@}"   eecho "DEBUG: ${@}"
85  }  }
86    
87    # source a file with debug information
88    include()
89    {
90     local retval
91    
92     if [ -f $@ ]
93     then
94     decho "including '$@'"
95     source $@
96     retval=$?
97     else
98     decho "include: '$@' not found"
99     retval=1
100     fi
101    
102     return ${retval}
103    }
104    
105  # adds a line to a configuration file defined by the $CONFIG variable  # adds a line to a configuration file defined by the $CONFIG variable
106  # $CONFIG="/etc/conf.d/mcore" addconfig 'LIBDIR="/usr/lib"'  # $CONFIG="/etc/conf.d/mcore" addconfig 'LIBDIR="/usr/lib"'
107  addconfig()  addconfig()
# Line 133  x11runas() Line 151  x11runas()
151  {  {
152   if [[ -n $(pidof X) ]]   if [[ -n $(pidof X) ]]
153   then   then
154   su - "${MCORE_UNPRIV_USER}" -c "DISPLAY=${MCORE_XORG_DISPLAY} $@"   su - "${MCORE_UNPRIV_USER}" -c "DISPLAY=${MCORE_XORG_DISPLAY} '$@'"
155   fi   fi
156  }  }
157    

Legend:
Removed from v.2140  
changed lines
  Added in v.2347