Skip to content

Commit

Permalink
Changes for TorBox mini
Browse files Browse the repository at this point in the history
  • Loading branch information
radio24 committed Jan 27, 2024
1 parent 6fce0db commit 66b943e
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 15 deletions.
4 changes: 4 additions & 0 deletions bin/hostapd_fallback_komplex_part_1
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@
# wlan1 entries in the configuration fails and substitutet them with wlan0.
#
#
# EXCEPTION: don't run on TorBox mini (will replace /etc/network/interfaces) --> asuming that we don't have clients on the wifi
RUNFILE="/home/torbox/torbox/run/torbox.run"
if grep "^TORBOX_MINI=1" ${RUNFILE} ; then exit; fi

##### SET VARIABLES ######

#Other variables
Expand Down
2 changes: 1 addition & 1 deletion etc/default/isc-dhcp-server
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@
# Separate multiple interfaces with spaces, e.g. "eth0 eth1".

# Changed by TorBox
INTERFACESv4="wlan0 wlan1 eth0 eth1"
INTERFACESv4="wlan0 wlan1 eth0 eth1 usb0"
INTERFACESv6=""
2 changes: 1 addition & 1 deletion etc/network/interfaces
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
# source-directory /etc/network/interfaces.d

auto lo
auto eth0
Expand Down
2 changes: 1 addition & 1 deletion etc/network/interfaces.mini
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
# source-directory /etc/network/interfaces.d

auto lo
auto wlan0
Expand Down
2 changes: 1 addition & 1 deletion etc/network/interfaces.wlan0eth0
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
# source-directory /etc/network/interfaces.d

auto lo
auto eth1
Expand Down
2 changes: 1 addition & 1 deletion etc/network/interfaces.wlan0eth1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
# source-directory /etc/network/interfaces.d

auto lo
auto eth0
Expand Down
2 changes: 1 addition & 1 deletion etc/network/interfaces.wlan1eth0
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
# source-directory /etc/network/interfaces.d

auto lo
auto eth1
Expand Down
2 changes: 1 addition & 1 deletion install/run_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1200,4 +1200,4 @@ else
fi
echo -e "${RED}[+] Rebooting...${NOCOLOR}"
sleep 3
reboot
sudo reboot
2 changes: 1 addition & 1 deletion install/run_install_mini.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1202,4 +1202,4 @@ else
fi
echo -e "${RED}[+] Rebooting...${NOCOLOR}"
sleep 3
reboot
sudo reboot
14 changes: 7 additions & 7 deletions menu
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ case "$CHOICE" in
CLIENT_IFACE_TUN1_IP="tun1"
clear
else
TUN1_IP=$(ip addr show ubs0 | grep -w 192.168.44.1)
TUN1_IP=$(ip addr show usb0 | grep -w 192.168.44.1)
CLIENT_IFACE_TUN1_IP="usb0"
clear
fi
Expand Down Expand Up @@ -478,7 +478,7 @@ case "$CHOICE" in
CLIENT_IFACE_TUN1_IP="tun1"
clear
else
TUN1_IP=$(ip addr show ubs0 | grep -w 192.168.44.1)
TUN1_IP=$(ip addr show usb0 | grep -w 192.168.44.1)
CLIENT_IFACE_TUN1_IP="usb0"
clear
fi
Expand Down Expand Up @@ -549,7 +549,7 @@ case "$CHOICE" in
CLIENT_IFACE_TUN1_IP="tun1"
clear
else
TUN1_IP=$(ip addr show ubs0 | grep -w 192.168.44.1)
TUN1_IP=$(ip addr show usb0 | grep -w 192.168.44.1)
CLIENT_IFACE_TUN1_IP="usb0"
clear
fi
Expand Down Expand Up @@ -620,7 +620,7 @@ case "$CHOICE" in
CLIENT_IFACE_TUN1_IP="tun1"
clear
else
TUN1_IP=$(ip addr show ubs0 | grep -w 192.168.44.1)
TUN1_IP=$(ip addr show usb0 | grep -w 192.168.44.1)
CLIENT_IFACE_TUN1_IP="usb0"
clear
fi
Expand Down Expand Up @@ -698,7 +698,7 @@ case "$CHOICE" in
CLIENT_IFACE_TUN1_IP="tun1"
clear
else
TUN1_IP=$(ip addr show ubs0 | grep -w 192.168.44.1)
TUN1_IP=$(ip addr show usb0 | grep -w 192.168.44.1)
CLIENT_IFACE_TUN1_IP="usb0"
clear
fi
Expand Down Expand Up @@ -768,7 +768,7 @@ case "$CHOICE" in
CLIENT_IFACE_TUN1_IP="tun1"
clear
else
TUN1_IP=$(ip addr show ubs0 | grep -w 192.168.44.1)
TUN1_IP=$(ip addr show usb0 | grep -w 192.168.44.1)
CLIENT_IFACE_TUN1_IP="usb0"
clear
fi
Expand Down Expand Up @@ -841,7 +841,7 @@ case "$CHOICE" in
CLIENT_IFACE_TUN1_IP="tun1"
clear
else
TUN1_IP=$(ip addr show ubs0 | grep -w 192.168.44.1)
TUN1_IP=$(ip addr show usb0 | grep -w 192.168.44.1)
CLIENT_IFACE_TUN1_IP="usb0"
clear
fi
Expand Down

0 comments on commit 66b943e

Please sign in to comment.