diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/network.subr | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/network.subr b/src/network.subr index 85dfc55..bfcfe45 100644 --- a/src/network.subr +++ b/src/network.subr @@ -1,5 +1,6 @@ ### Globals PROFILE_DIR="/etc/network.d" +SUBR_DIR="/usr/lib/network/" ### Messages ## @@ -193,6 +194,12 @@ get_iface_prof() { fi } +# list_profiles +# Outputs a list of all profiles +list_profiles() { + find $PROFILE_DIR/ -maxdepth 1 -type f -printf "%f\n" +} + # check_profile profile # Return 0 if profile up # Return 1 if profile down |