contrib/package: /etc/functions.sh => /lib/functions.sh

This commit is contained in:
Jo-Philipp Wich 2012-06-05 15:57:22 +00:00
parent 5ae5d3be63
commit 163b224b25
15 changed files with 15 additions and 15 deletions

View file

@ -5,7 +5,7 @@
channel=$1 channel=$1
community=$2 community=$2
. /etc/functions.sh . /lib/functions.sh
# Try to get BSSID from profile first # Try to get BSSID from profile first

View file

@ -2,7 +2,7 @@
# This is only run once (usually after flashing an image from the imagebuilder) # This is only run once (usually after flashing an image from the imagebuilder)
# It sets up the initial config for this node. # It sets up the initial config for this node.
. /etc/functions.sh . /lib/functions.sh
. $dir/functions.sh . $dir/functions.sh
config_load system config_load system

View file

@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
# Sets up the dhcp part of dnsmasq # Sets up the dhcp part of dnsmasq
. /etc/functions.sh . /lib/functions.sh
. $dir/functions.sh . $dir/functions.sh
net="$1" net="$1"

View file

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
. /etc/functions.sh . /lib/functions.sh
. $dir/functions.sh . $dir/functions.sh
# Set dnsmasq config # Set dnsmasq config

View file

@ -3,7 +3,7 @@
# If wan/lan is used for olsr then remove these networks from wan/lan zones # If wan/lan is used for olsr then remove these networks from wan/lan zones
# Also setup rules defined in /etc/config/freifunk and /etc/config/profile_<community> # Also setup rules defined in /etc/config/freifunk and /etc/config/profile_<community>
. /etc/functions.sh . /lib/functions.sh
. $dir/functions.sh . $dir/functions.sh
wan_is_olsr=$(uci -q get meshwizard.netconfig.wan_config) wan_is_olsr=$(uci -q get meshwizard.netconfig.wan_config)

View file

@ -4,7 +4,7 @@
# Arg $1 = $net # Arg $1 = $net
net=$1 net=$1
. /etc/functions.sh . /lib/functions.sh
. $dir/functions.sh . $dir/functions.sh
config_load firewall config_load firewall

View file

@ -2,7 +2,7 @@
[ ! "$(uci -q get network.lan)" == "interface" ] && exit [ ! "$(uci -q get network.lan)" == "interface" ] && exit
. /etc/functions.sh . /lib/functions.sh
. $dir/functions.sh . $dir/functions.sh
# Setup IPv6 for the lan interface # Setup IPv6 for the lan interface

View file

@ -3,7 +3,7 @@
[ ! "$(uci -q get network.lan)" == "interface" ] && exit [ ! "$(uci -q get network.lan)" == "interface" ] && exit
. /etc/functions.sh . /lib/functions.sh
. $dir/functions.sh . $dir/functions.sh
uci batch << EOF uci batch << EOF

View file

@ -2,7 +2,7 @@
# Argument $1: network interface # Argument $1: network interface
net="$1" net="$1"
. /etc/functions.sh . /lib/functions.sh
. $dir/functions.sh . $dir/functions.sh
# Setup a (new) interface section for $net # Setup a (new) interface section for $net

View file

@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
# Sets up olsrd # Sets up olsrd
. /etc/functions.sh . /lib/functions.sh
. $dir/functions.sh . $dir/functions.sh
# Clean the config, remove httpinfo and interface wlan # Clean the config, remove httpinfo and interface wlan

View file

@ -4,7 +4,7 @@
net=$1 net=$1
. /etc/functions.sh . /lib/functions.sh
. $dir/functions.sh . $dir/functions.sh
# Rename interface for $netrenamed # Rename interface for $netrenamed

View file

@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
# Setup_splash, takes 1 argument: 1=net # Setup_splash, takes 1 argument: 1=net
. /etc/functions.sh . /lib/functions.sh
. $dir/functions.sh . $dir/functions.sh
net=$1 net=$1

View file

@ -3,7 +3,7 @@
[ ! "$(uci -q get network.wan)" == "interface" ] && exit [ ! "$(uci -q get network.wan)" == "interface" ] && exit
. /etc/functions.sh . /lib/functions.sh
. $dir/functions.sh . $dir/functions.sh
uci batch << EOF uci batch << EOF

View file

@ -3,7 +3,7 @@
# Arguments: $1 = network interface # Arguments: $1 = network interface
net="$1" net="$1"
. /etc/functions.sh . /lib/functions.sh
. $dir/functions.sh . $dir/functions.sh
##### wifi-device ##### ##### wifi-device #####

View file

@ -9,7 +9,7 @@
# You may not use this file except in compliance with the License. # You may not use this file except in compliance with the License.
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 # You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
. /etc/functions.sh . /lib/functions.sh
echo " echo "
/* Meshwizard 0.0.7 */ /* Meshwizard 0.0.7 */