From 10d1c069a4e38ccbcaaa893d2d9e28ad5e05aae1 Mon Sep 17 00:00:00 2001 From: James Rayner Date: Fri, 30 May 2008 22:22:35 +1000 Subject: FS9953 FS9644 --- src/network.subr | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') 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 -- cgit v1.2.3-24-g4f1b