Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Config
Commits
fb586f95
Commit
fb586f95
authored
Apr 23, 2019
by
Igor Pecovnik
Browse files
Small bugfix and cleanup
parent
1fd13c25
Changes
1
Hide whitespace changes
Inline
Side-by-side
debian-config-jobs
View file @
fb586f95
...
@@ -361,7 +361,7 @@ function jobs ()
...
@@ -361,7 +361,7 @@ function jobs ()
rm
-f
/etc/network/interfaces.d/armbian.ap.nat
rm
-f
/etc/network/interfaces.d/armbian.ap.nat
rm
-f
/etc/network/interfaces.d/armbian.ap.bridge
rm
-f
/etc/network/interfaces.d/armbian.ap.bridge
rm
-f
/etc/dnsmasq.conf
rm
-f
/etc/dnsmasq.conf
iptables
-t
nat
-D
POSTROUTING 1
iptables
-t
nat
-D
POSTROUTING 1
>
/dev/null 2>&1
rm
-f
/etc/iptables.ipv4.nat
rm
-f
/etc/iptables.ipv4.nat
rm
-f
/var/run/hostapd/
*
>
/dev/null 2>&1
rm
-f
/var/run/hostapd/
*
>
/dev/null 2>&1
reload-nety
reload-nety
...
@@ -397,7 +397,7 @@ function jobs ()
...
@@ -397,7 +397,7 @@ function jobs ()
rm
-f
/etc/network/interfaces.d/armbian.ap.nat
rm
-f
/etc/network/interfaces.d/armbian.ap.nat
rm
-f
/etc/network/interfaces.d/armbian.ap.bridge
rm
-f
/etc/network/interfaces.d/armbian.ap.bridge
rm
-f
/etc/dnsmasq.conf
rm
-f
/etc/dnsmasq.conf
iptables
-t
nat
-D
POSTROUTING 1
iptables
-t
nat
-D
POSTROUTING 1
>
/dev/null 2>&1
rm
-f
/etc/iptables.ipv4.nat
rm
-f
/etc/iptables.ipv4.nat
rm
-f
/var/run/hostapd/
*
>
/dev/null 2>&1
rm
-f
/var/run/hostapd/
*
>
/dev/null 2>&1
sed
-i
'/^iptables/ d'
/etc/rc.local
sed
-i
'/^iptables/ d'
/etc/rc.local
...
@@ -538,7 +538,7 @@ function jobs ()
...
@@ -538,7 +538,7 @@ function jobs ()
echo
-e
"# armbian NAT hostapd
\n
allow-hotplug
$WIRELESS_ADAPTER
\n
iface
$WIRELESS_ADAPTER
inet static "
>
$TEMP_CONF
echo
-e
"# armbian NAT hostapd
\n
allow-hotplug
$WIRELESS_ADAPTER
\n
iface
$WIRELESS_ADAPTER
inet static "
>
$TEMP_CONF
echo
-e
"
\t
address 172.24.1.1
\n\t
netmask 255.255.255.0
\n\t
network 172.24.1.0
\n\t
broadcast 172.24.1.255"
>>
$TEMP_CONF
echo
-e
"
\t
address 172.24.1.1
\n\t
netmask 255.255.255.0
\n\t
network 172.24.1.0
\n\t
broadcast 172.24.1.255"
>>
$TEMP_CONF
echo
-e
"
\t
post-up service dnsmasq start
\t
post-up
\n\t
iptables-restore < /etc/iptables.ipv4.nat
\n\t
post-down service dnsmasq stop"
>>
$TEMP_CONF
echo
-e
"
\t
post-up service dnsmasq start
\
n\
t
post-up iptables-restore < /etc/iptables.ipv4.nat
\n\t
post-down service dnsmasq stop"
>>
$TEMP_CONF
# create new configuration
# create new configuration
echo
"interface=
$WIRELESS_ADAPTER
# Use interface
$WIRELESS_ADAPTER
"
>
/etc/dnsmasq.conf
echo
"interface=
$WIRELESS_ADAPTER
# Use interface
$WIRELESS_ADAPTER
"
>
/etc/dnsmasq.conf
echo
"listen-address=172.24.1.1 # Explicitly specify the address to listen on"
>>
/etc/dnsmasq.conf
echo
"listen-address=172.24.1.1 # Explicitly specify the address to listen on"
>>
/etc/dnsmasq.conf
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment