diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2010-08-10 15:55:34 -0700 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2010-08-10 15:55:34 -0700 |
commit | bd41d33a5a140465188c95c404e12aa00f838aef (patch) | |
tree | d736b57b76b41d1df24b3361e755d67b79482289 /scripts | |
parent | c9cb02b8b2976c18212e0a7f1300ef812707b038 (diff) | |
download | vyatta-cfg-bd41d33a5a140465188c95c404e12aa00f838aef.tar.gz vyatta-cfg-bd41d33a5a140465188c95c404e12aa00f838aef.zip |
add functions to shell API
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/vyatta-exists | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/scripts/vyatta-exists b/scripts/vyatta-exists deleted file mode 100755 index ef2dea3..0000000 --- a/scripts/vyatta-exists +++ /dev/null @@ -1,14 +0,0 @@ -#! /bin/bash - -# Test if given node exists in Vyatta config hierarchy -# -# if vyatta-exists interfaces wireless - -if [ -z "$VYATTA_TEMP_CONFIG_DIR" ]; then - echo "$0: not in configuration mode" 1>&2; - exit 1; -fi -IFS=/ -node=$* -IFS= -exec test -d $VYATTA_TEMP_CONFIG_DIR/$node |