Compare commits

...

5 Commits

Author SHA1 Message Date
Loki The Great c1bad5f7ff
Merge e2b969b68a into fbad56f05c 2024-06-26 13:20:57 +02:00
garywill fbad56f05c get_pid_by_dbus_name() : fix stderr show 2024-04-20 20:48:05 +08:00
garywill c376609896 readme text 2024-04-20 20:46:05 +08:00
garywill a8ae765f03 fix type #73 2024-04-20 20:45:53 +08:00
Loki The Great e2b969b68a
Create MostLikelyUse 2022-06-15 13:13:32 -04:00
3 changed files with 13 additions and 4 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

@ -327,7 +327,7 @@ Options:
--dns <ip>|<port>|<ip:port>
DNS server's upstream DNS.
Use ',' to seperate multiple servers
(default: use /etc/resolve.conf)
(default: use /etc/resolv.conf)
(Note IPv6 addresses need '[]' around)
--no-dns Do not serve DNS
--no-dnsmasq Disable dnsmasq server (DHCP, DNS, RA)
@ -453,7 +453,6 @@ Visit [**my homepage** 🏡](https://garywill.github.io) to see **more tools and
## TODO
- WPA3
- Global IPv6
- Explictly ban forwarding if not needed
## License

4
lnxrouter Normal file → Executable file
View File

@ -47,7 +47,7 @@ Options:
--dns <ip>|<port>|<ip:port>
DNS server's upstream DNS.
Use ',' to seperate multiple servers
(default: use /etc/resolve.conf)
(default: use /etc/resolv.conf)
(Note IPv6 addresses need '[]' around)
--no-dns Do not serve DNS
--no-dnsmasq Disable dnsmasq server (DHCP, DNS, RA)
@ -862,7 +862,7 @@ get_pid_by_dbus_name() {
which dbus-send >/dev/null 2>&1 || return 1
pid="$( dbus-send --system --print-reply --dest=org.freedesktop.DBus /org/freedesktop/DBus org.freedesktop.DBus.GetConnectionUnixProcessID string:$DBUS_NAME | grep " uint32 " | awk '{print $2}' )" 2>/dev/null
pid="$( dbus-send --system --print-reply --dest=org.freedesktop.DBus /org/freedesktop/DBus org.freedesktop.DBus.GetConnectionUnixProcessID string:$DBUS_NAME 2>/dev/null | grep " uint32 " | awk '{print $2}' )"
r=$?
echo "$pid"