summaryrefslogtreecommitdiffstats
path: root/src/network.subr
diff options
context:
space:
mode:
authorJames Rayner <james@archlinux.org>2008-05-30 14:22:35 +0200
committerJames Rayner <james@archlinux.org>2008-05-30 14:22:35 +0200
commit10d1c069a4e38ccbcaaa893d2d9e28ad5e05aae1 (patch)
treec61fb416dcca62750ac37cf5fa6de6068914344c /src/network.subr
parentdcc9f2bfacb27cbabee1d5487d84087d99207e2a (diff)
downloadnetctl-10d1c069a4e38ccbcaaa893d2d9e28ad5e05aae1.tar.gz
netctl-10d1c069a4e38ccbcaaa893d2d9e28ad5e05aae1.tar.xz
FS9953 FS9644
Diffstat (limited to 'src/network.subr')
-rw-r--r--src/network.subr7
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