Compare commits

...

4 Commits

Author SHA1 Message Date
Loki The Great 83aa9b8d9e
Merge e2b969b68a into fe2348a725 2024-12-19 17:57:20 +01:00
garywill fe2348a725 some aa-complain improve 2024-12-18 20:52:53 +08:00
ByteSnipers GmbH 7b374d1ee1 Fix a bug with complian command
added support for aa-complian.
2024-12-18 12:50:44 +00:00
Loki The Great e2b969b68a
Create MostLikelyUse 2022-06-15 13:13:32 -04:00
2 changed files with 16 additions and 6 deletions

10
MostLikelyUse Normal file
View File

@ -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.

View File

@ -2087,8 +2087,9 @@ run_wifi_ap_processes() {
echo
echo "Starting hostapd"
if which complain > /dev/null 2>&1; then
complain hostapd
if COMPLAIN_CMD="$(command -v aa-complain || command -v complain)"; then
echo "Setting hostapd to AppArmor complain mode..."
"$COMPLAIN_CMD" hostapd
fi
# hostapd '-P' works only when use '-B' (run in background)
@ -2108,10 +2109,9 @@ start_dnsmasq() {
echo
echo "Starting dnsmasq"
if which complain > /dev/null 2>&1; then
# openSUSE's apparmor does not allow dnsmasq to read files.
# remove restriction.
complain dnsmasq
if COMPLAIN_CMD="$(command -v aa-complain || command -v complain)"; then
echo "Setting dnsmasq to AppArmor complain mode..."
"$COMPLAIN_CMD" dnsmasq
fi
# Using '-d'(no daemon) dnsmasq will not turn into 'nobody'