git-svn-id: https://klish.googlecode.com/svn/trunk@261 0eaa4687-2ee9-07dd-09d9-bcdd2d2dd5fb
@@ -1,12 +0,0 @@
-#!/bin/sh
-
-export SYSTEM_NAME=`hostname`
-progname=`basename $0`
-if [ "$progname" = "klish-enable" ]; then
- export CLISH_PATH=/etc/clish-enable
-fi
-exec /usr/bin/clish "$@"
@@ -1 +0,0 @@
-klish
@@ -19,7 +19,7 @@
<COMMAND name="enable"
help="Turn on privileged commands"
lock="false">
- <ACTION>su -c klish-enable</ACTION>
+ <ACTION>su -l -c "clish -x /etc/clish-enable"</ACTION>
</COMMAND>
</VIEW>
@@ -4,5 +4,5 @@
/usr/bin/konfd >/dev/null 2>/dev/null &
# Initialize system with startup-config
-CLISH_VIEW=configure-view /bin/klish-enable /etc/startup-config
+/usr/bin/clish -x /etc/clish-enable -w configure-view /etc/startup-config