Hallo, dies ist ein Test.
PWD: /www/data-lst1/unixsoft/unixsoft/kaempfer/.public_html
Running in File Mode
Relative path: ./../../../../../.././lib/svc/method/ipsec-policy
Real path: /lib/svc/method/ipsec-policy
Zurück
#!/usr/sbin/sh # # Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved. # # # Script for svc:/network/ipsec/policy:default service # case "$1" in 'start' | 'refresh') # # If the IPsec config file SMF property (config/config_file) # is an empty string or if the specified file is empty, then # flush the existing policies. Otherwise, do an atomic # replacement of the policies. # file=`/usr/bin/svcprop -cp config/config_file \ svc:/network/ipsec/policy:default` if [ -z "$file" -o ! -s "$file" ]; then /usr/sbin/ipsecconf -q -F elif [ "$1" == "start" ]; then /usr/sbin/ipsecconf -q -a $file else /usr/sbin/ipsecconf -q -F -a $file fi ;; 'stop') /usr/sbin/ipsecconf -q -F ;; *) echo "Usage: $0 start | refresh | stop" exit $SMF_EXIT_ERR_FATAL ;; esac exit $SMF_EXIT_OK