]> git.ipfire.org Git - people/stevee/network.git/blobdiff - functions
wireless: Add function to find DFS channels.
[people/stevee/network.git] / functions
index 5b592bf0efc79ca50c8652fcc5f722bb0817d881..2f6cfdf49f239f3ac00281990671acca530d1e30 100644 (file)
--- a/functions
+++ b/functions
 #                                                                             #
 ###############################################################################
 
+# Make sure that helpers which are exec'ed have a working
+# PATH variable.
+export PATH="/usr/local/sbin:/usr/sbin:/sbin:/usr/bin:/bin:${PATH}"
+
 INIT_FUNCTIONS=""
 
 function init_register() {
@@ -38,22 +42,3 @@ function init_run() {
 for file in /usr/lib/network/functions.*; do
        . ${file}
 done
-
-# Reading in global configuration files
-config_read_globals
-
-# Set colour mode
-case "${COLOURS}" in
-       auto)
-               colours_auto_disable
-               ;;
-       off|0)
-               colours_disable
-               ;;
-       on|1)
-               # Do nothing
-               ;;
-       *)
-               warning_log "Unknown parameter given for COLOURS: ${COLOURS}"
-               ;;
-esac