diff options
author | Michael Larson <mike@vyatta.com> | 2011-05-04 16:08:48 -0700 |
---|---|---|
committer | Michael Larson <mike@vyatta.com> | 2011-05-04 16:08:48 -0700 |
commit | 5e402d549409e28d148a768e899dc8e50745f636 (patch) | |
tree | 2fa52c293a0709696af3147fd9cdb67b02135859 /scripts | |
parent | 25b1fa57cd804e91ac8748d03c68b96a68442220 (diff) | |
download | vyatta-op-5e402d549409e28d148a768e899dc8e50745f636.tar.gz vyatta-op-5e402d549409e28d148a768e899dc8e50745f636.zip |
allow "clear connection-tracking" op mode command to override query for rest mode.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/vyatta-clear-conntrack | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/vyatta-clear-conntrack b/scripts/vyatta-clear-conntrack index 99874a3..0979e4a 100644 --- a/scripts/vyatta-clear-conntrack +++ b/scripts/vyatta-clear-conntrack @@ -55,8 +55,12 @@ get_response () { response='' while [ -z "$response" ] do - echo -ne "\nThis will clear all currently tracked and expected connections. Continue? (Y/N) [N]: " - response=$(get_response "N" "Y N") + if [ "$VYATTA_PROCESS_CLIENT" == "gui2_rest" ]; then + response="y" + else + echo -ne "\nThis will clear all currently tracked and expected connections. Continue? (Y/N) [N]: " + response=$(get_response "N" "Y N") + fi if [ "$response" == "n" ]; then exit 1 else |