gui: Tweak using vtysh by widgets.

This commit is contained in:
tgoff0 2015-05-26 17:34:13 +00:00
parent 6979ab7abb
commit fc4b8e71be

View file

@ -3,12 +3,15 @@
# See the LICENSE file included in this distribution.
#
set vtysh [auto_execok vtysh]
if {$vtysh == ""} {
set vtysh_cmd vtysh
set vtysh_search_path {/usr/bin /usr/local/bin /usr/lib/quagga}
set vtysh [auto_execok $vtysh_cmd]
if {$vtysh == ""} {
set vtysh $vtysh_cmd
foreach p $vtysh_search_path {
if {[file executable $p/vtysh]} {
set vtysh $p/vtysh
if {[file executable $p/$vtysh_cmd]} {
set vtysh $p/$vtysh_cmd
break
}
}