X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plc.d%2Ffunctions;h=5b59f694897f05ca712eaf185d35444118f9fcd9;hb=b6830acc9a912e586fcaaa6173b10af44d56956f;hp=71aaf3f48725c54c054544b6ddf42e6de011acac;hpb=00486e6f391586f05c8439ab2f8986f106b0535c;p=myplc.git diff --git a/plc.d/functions b/plc.d/functions index 71aaf3f..5b59f69 100644 --- a/plc.d/functions +++ b/plc.d/functions @@ -5,7 +5,7 @@ # Mark Huang # Copyright (C) 2006 The Trustees of Princeton University # -# $Id: functions,v 1.2 2006/04/07 04:27:56 mlhuang Exp $ +# $Id: functions,v 1.5 2006/06/23 21:41:56 mlhuang Exp $ # export PATH=/sbin:/bin:/usr/bin:/usr/sbin @@ -13,11 +13,6 @@ export PATH=/sbin:/bin:/usr/bin:/usr/sbin # Source function library . /etc/init.d/functions -# Source configuration if it exists -if [ -f /etc/planetlab/plc_config ] ; then - . /etc/planetlab/plc_config -fi - # Total number of errors ERRORS=0 @@ -77,13 +72,6 @@ gethostbyname () perl -MSocket -e '($a,$b,$c,$d,@addrs) = gethostbyname($ARGV[0]); print inet_ntoa($addrs[0]) . "\n";' $1 2>/dev/null } -# Print the CNAME of an SSL certificate -ssl_cname () -{ - openssl x509 -noout -in $1 -subject | \ - sed -n -e 's@.*/CN=\([^/]*\).*@\1@p' -} - # Forcefully make a symlink symlink () {