]> git.ipfire.org Git - network.git/commitdiff
Manually set PATH.
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 3 Aug 2011 17:16:34 +0000 (17:16 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 3 Aug 2011 17:16:34 +0000 (17:16 +0000)
In scripts that are called by udev and stuff, there might be another
PATH.

functions

index b1836f82d4510d3ba2db22adabcbd808dd64a6b1..e3d95fb42305a53241a0d064f0993f0ab85997ad 100644 (file)
--- a/functions
+++ b/functions
@@ -1,5 +1,8 @@
 #!/bin/bash
 
+# Make sure, that sbins are in PATH.
+export PATH="/usr/local/sbin:/usr/sbin:/sbin:/bin:/usr/bin"
+
 INIT_FUNCTIONS=""
 
 function init_register() {