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
b0c37dea
Commit
b0c37dea
authored
Dec 31, 2017
by
Igor Pecovnik
Browse files
One small workaround if DHCP server comes up too quick.
parent
72617e7f
Changes
1
Show whitespace changes
Inline
Side-by-side
debian-config-jobs
View file @
b0c37dea
...
...
@@ -273,6 +273,7 @@ function jobs ()
rm
-f
/etc/network/interfaces.d/armbian.ap.bridge
rm
-f
/var/run/hostapd/
*
>
/dev/null 2>&1
sed
-i
'/^iptables/ d'
/etc/rc.local
sed
-i
'/^service dnsmasq/ d'
/etc/rc.local
sed
's/interface-name:wl.*//'
-i
/etc/NetworkManager/conf.d/10-ignore-interfaces.conf
sed
's/,$//'
-i
/etc/NetworkManager/conf.d/10-ignore-interfaces.conf
iptables
-F
...
...
@@ -431,6 +432,8 @@ function jobs ()
iptables-save
>
/etc/iptables.ipv4.nat
sed
-i
's/^bridge=.*/#&/'
/etc/hostapd.conf
sed
-e
's/exit 0//g'
-i
/etc/rc.local
# workaround if hostapd is too slow
echo
"service dnsmasq start"
>>
/etc/rc.local
echo
"iptables-restore < /etc/iptables.ipv4.nat"
>>
/etc/rc.local
echo
"exit 0"
>>
/etc/rc.local
;;
...
...
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