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

revision 2479 by niro, Thu Sep 10 08:48:45 2015 UTC revision 2632 by niro, Tue Sep 29 10:36:33 2015 UTC
# Line 48  eecho() Line 48  eecho()
48   -n) shift; opts="n" ;;   -n) shift; opts="n" ;;
49   esac   esac
50    
51   echo -e${opts} "${COLRED}$@${COLDEFAULT}${webcrlf}"   # echo to stderr
52     echo -e${opts} "${COLRED}$@${COLDEFAULT}${webcrlf}" 1>&2
53  }  }
54    
55  # prints return values of get | enabled even in quiet mode  # prints return values of get | enabled even in quiet mode
# Line 149  clearconfig() Line 150  clearconfig()
150  # this wrapper runs a command in the xsession of the unpriv_user  # this wrapper runs a command in the xsession of the unpriv_user
151  x11runas()  x11runas()
152  {  {
153   if [[ -n $(pidof X) ]] || [[ -n $(pidof Xorg) ]]   if [[ -n $(pidof X) ]] || [[ -n $(pidof Xorg) ]] || [[ -n $(pidof Xorg.bin) ]]
154   then   then
155   su - "${MCORE_UNPRIV_USER}" -c "DISPLAY=${MCORE_XORG_DISPLAY} $@"   su - "${MCORE_UNPRIV_USER}" -c "DISPLAY=${MCORE_XORG_DISPLAY} $@"
156   fi   fi
# Line 368  $@ Line 369  $@
369  quit  quit
370  EOF  EOF
371  }  }
372    
373    nsslsay_queue_init()
374    {
375     SSLSAY_QUEUE=()
376    }
377    
378    nsslsay_queue_add()
379    {
380     SSLSAY_QUEUE+=( "$@" )
381    }
382    
383    nsslsay_queue_print()
384    {
385     local count
386     local i
387    
388     count="${#SSLSAY_QUEUE[*]}"
389     for ((i=0; i < count; i++))
390     do
391     echo "${SSLSAY_QUEUE[${i}]}"
392     done
393    }
394    
395    nsslsay_queue_run()
396    {
397     nsslsay "$(nsslsay_queue_print)"
398    }
399    
400    nsslsay_queue_run_fingerprint()
401    {
402     nsslsay_fingerprint "$(nsslsay_queue_print)"
403    }

Legend:
Removed from v.2479  
changed lines
  Added in v.2632