Compare commits
4 Commits
b57a8f1314
...
83aa9b8d9e
Author | SHA1 | Date |
---|---|---|
|
83aa9b8d9e | |
|
fe2348a725 | |
|
7b374d1ee1 | |
|
e2b969b68a |
|
@ -0,0 +1,10 @@
|
||||||
|
Simplest call.
|
||||||
|
|
||||||
|
calk iwconfig
|
||||||
|
find wifi card name
|
||||||
|
in mant cases this is wlo1 on distros like Fedora
|
||||||
|
|
||||||
|
sudo ./lnxrouter --ap <yourwirelessdevice> <newhotspotname> -p <yourpassword> -g <thenewserversipaddress>
|
||||||
|
|
||||||
|
-g is important otherwise the server address changes everytime.
|
||||||
|
also, unless dhcp is properly configured you're going to have to statically address your clients.
|
12
lnxrouter
12
lnxrouter
|
@ -2087,8 +2087,9 @@ run_wifi_ap_processes() {
|
||||||
echo
|
echo
|
||||||
echo "Starting hostapd"
|
echo "Starting hostapd"
|
||||||
|
|
||||||
if which complain > /dev/null 2>&1; then
|
if COMPLAIN_CMD="$(command -v aa-complain || command -v complain)"; then
|
||||||
complain hostapd
|
echo "Setting hostapd to AppArmor complain mode..."
|
||||||
|
"$COMPLAIN_CMD" hostapd
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# hostapd '-P' works only when use '-B' (run in background)
|
# hostapd '-P' works only when use '-B' (run in background)
|
||||||
|
@ -2108,10 +2109,9 @@ start_dnsmasq() {
|
||||||
echo
|
echo
|
||||||
echo "Starting dnsmasq"
|
echo "Starting dnsmasq"
|
||||||
|
|
||||||
if which complain > /dev/null 2>&1; then
|
if COMPLAIN_CMD="$(command -v aa-complain || command -v complain)"; then
|
||||||
# openSUSE's apparmor does not allow dnsmasq to read files.
|
echo "Setting dnsmasq to AppArmor complain mode..."
|
||||||
# remove restriction.
|
"$COMPLAIN_CMD" dnsmasq
|
||||||
complain dnsmasq
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Using '-d'(no daemon) dnsmasq will not turn into 'nobody'
|
# Using '-d'(no daemon) dnsmasq will not turn into 'nobody'
|
||||||
|
|
Loading…
Reference in New Issue