Compare commits
3 Commits
84e9229dc1
...
33eedb55c3
Author | SHA1 | Date |
---|---|---|
|
33eedb55c3 | |
|
b4cbcbdbbb | |
|
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.
|
|
@ -932,8 +932,12 @@ get_pid_by_dbus_name() {
|
||||||
}
|
}
|
||||||
is_same_netns() {
|
is_same_netns() {
|
||||||
local pid2="$1"
|
local pid2="$1"
|
||||||
|
local my_netns his_netns
|
||||||
[[ ! -f /proc/$$/ns/net ]] && return 0 # no netns feature. treat as same
|
[[ ! -f /proc/$$/ns/net ]] && return 0 # no netns feature. treat as same
|
||||||
[[ "$(readlink /proc/$$/ns/net)" == "$(readlink /proc/$pid2/ns/net)" ]] && return 0
|
my_netns="$(readlink /proc/$$/ns/net)"
|
||||||
|
his_netns="$(readlink /proc/$pid2/ns/net)"
|
||||||
|
[[ ! -n "$his_netns" ]] && return 1 # can't find his pid or netns (maybe different pidns), treat as not same
|
||||||
|
[[ "$my_netns" == "$his_netns" ]] && return 0
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
#-----------------
|
#-----------------
|
||||||
|
|
Loading…
Reference in New Issue