wlan 2 and 3
This commit is contained in:
parent
66b96ebf79
commit
fdf20a19cd
|
@ -1738,6 +1738,16 @@ function mesh_babel {
|
||||||
echo ' IFACE=wlan1' >> $babel_script
|
echo ' IFACE=wlan1' >> $babel_script
|
||||||
echo ' fi' >> $babel_script
|
echo ' fi' >> $babel_script
|
||||||
echo 'fi' >> $babel_script
|
echo 'fi' >> $babel_script
|
||||||
|
echo 'if [[ $IFACE == "wlan0" ]]; then' >> $babel_script
|
||||||
|
echo ' if grep -q "wlan2" /proc/net/dev; then' >> $babel_script
|
||||||
|
echo ' IFACE=wlan2' >> $babel_script
|
||||||
|
echo ' fi' >> $babel_script
|
||||||
|
echo 'fi' >> $babel_script
|
||||||
|
echo 'if [[ $IFACE == "wlan0" ]]; then' >> $babel_script
|
||||||
|
echo ' if grep -q "wlan3" /proc/net/dev; then' >> $babel_script
|
||||||
|
echo ' IFACE=wlan3' >> $babel_script
|
||||||
|
echo ' fi' >> $babel_script
|
||||||
|
echo 'fi' >> $babel_script
|
||||||
echo '' >> $babel_script
|
echo '' >> $babel_script
|
||||||
echo 'if [[ ! grep -q "$IFACE" /proc/net/dev || $1 == "stop" ]]; then' >> $babel_script
|
echo 'if [[ ! grep -q "$IFACE" /proc/net/dev || $1 == "stop" ]]; then' >> $babel_script
|
||||||
echo ' if ! grep -q "$IFACE" /proc/net/dev; then' >> $babel_script
|
echo ' if ! grep -q "$IFACE" /proc/net/dev; then' >> $babel_script
|
||||||
|
|
|
@ -131,6 +131,16 @@ function mesh_babel {
|
||||||
echo ' IFACE=wlan1' >> $babel_script
|
echo ' IFACE=wlan1' >> $babel_script
|
||||||
echo ' fi' >> $babel_script
|
echo ' fi' >> $babel_script
|
||||||
echo 'fi' >> $babel_script
|
echo 'fi' >> $babel_script
|
||||||
|
echo 'if [[ $IFACE == "wlan0" ]]; then' >> $babel_script
|
||||||
|
echo ' if grep -q "wlan2" /proc/net/dev; then' >> $babel_script
|
||||||
|
echo ' IFACE=wlan2' >> $babel_script
|
||||||
|
echo ' fi' >> $babel_script
|
||||||
|
echo 'fi' >> $babel_script
|
||||||
|
echo 'if [[ $IFACE == "wlan0" ]]; then' >> $babel_script
|
||||||
|
echo ' if grep -q "wlan3" /proc/net/dev; then' >> $babel_script
|
||||||
|
echo ' IFACE=wlan3' >> $babel_script
|
||||||
|
echo ' fi' >> $babel_script
|
||||||
|
echo 'fi' >> $babel_script
|
||||||
echo '' >> $babel_script
|
echo '' >> $babel_script
|
||||||
echo 'if [[ ! grep -q "$IFACE" /proc/net/dev || $1 == "stop" ]]; then' >> $babel_script
|
echo 'if [[ ! grep -q "$IFACE" /proc/net/dev || $1 == "stop" ]]; then' >> $babel_script
|
||||||
echo ' if ! grep -q "$IFACE" /proc/net/dev; then' >> $babel_script
|
echo ' if ! grep -q "$IFACE" /proc/net/dev; then' >> $babel_script
|
||||||
|
@ -202,6 +212,16 @@ function mesh_batman {
|
||||||
echo ' IFACE=wlan1' >> $batman_script
|
echo ' IFACE=wlan1' >> $batman_script
|
||||||
echo ' fi' >> $batman_script
|
echo ' fi' >> $batman_script
|
||||||
echo 'fi' >> $batman_script
|
echo 'fi' >> $batman_script
|
||||||
|
echo 'if [[ $IFACE == "wlan0" ]]; then' >> $batman_script
|
||||||
|
echo ' if grep -q "wlan2" /proc/net/dev; then' >> $batman_script
|
||||||
|
echo ' IFACE=wlan2' >> $batman_script
|
||||||
|
echo ' fi' >> $batman_script
|
||||||
|
echo 'fi' >> $batman_script
|
||||||
|
echo 'if [[ $IFACE == "wlan0" ]]; then' >> $batman_script
|
||||||
|
echo ' if grep -q "wlan3" /proc/net/dev; then' >> $batman_script
|
||||||
|
echo ' IFACE=wlan3' >> $batman_script
|
||||||
|
echo ' fi' >> $batman_script
|
||||||
|
echo 'fi' >> $batman_script
|
||||||
echo '' >> $batman_script
|
echo '' >> $batman_script
|
||||||
echo 'if [ -e /etc/default/batctl ]; then' >> $batman_script
|
echo 'if [ -e /etc/default/batctl ]; then' >> $batman_script
|
||||||
echo ' . /etc/default/batctl' >> $batman_script
|
echo ' . /etc/default/batctl' >> $batman_script
|
||||||
|
|
Loading…
Reference in New Issue