diff options
author | James Rayner <james@archlinux.org> | 2008-05-30 14:22:35 +0200 |
---|---|---|
committer | James Rayner <james@archlinux.org> | 2008-05-30 14:22:35 +0200 |
commit | 10d1c069a4e38ccbcaaa893d2d9e28ad5e05aae1 (patch) | |
tree | c61fb416dcca62750ac37cf5fa6de6068914344c /src | |
parent | dcc9f2bfacb27cbabee1d5487d84087d99207e2a (diff) | |
download | netctl-10d1c069a4e38ccbcaaa893d2d9e28ad5e05aae1.tar.gz netctl-10d1c069a4e38ccbcaaa893d2d9e28ad5e05aae1.tar.xz |
FS9953 FS9644
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 |