Skip to content
Snippets Groups Projects
Commit 72cd80fb authored by Jiří Kalvoda's avatar Jiří Kalvoda
Browse files

NET += opler

parent 1f9acdb8
Branches
No related tags found
No related merge requests found
#!/bin/sh
set -ueo pipefail
interface=opler
echo R | socat unix:/run/conntrack_hack -
ip link set $interface up
ip addres add 10.10.10.78/24 dev $interface
ip addres add 2001:718:1e03:81a::4e/64 dev $interface
ip route add default via 10.10.10.1 dev $interface
ip route add default via 2001:718:1e03:81a::1 dev $interface
(echo domain kam.mff.cuni.cz; echo nameserver 10.10.10.1 ) | resolvconf -a $interface
......@@ -13,8 +13,13 @@ SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="c0:3c:59:ab:9b:8
# hopik WiFi
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="40:1a:58:9d:75:d8",ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="wlan*", NAME="w"
# opler monitor
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="b0:4f:13:d2:2d:4b",ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="opler"
# samsung-monitor: configuration and wifi on/off
ACTION=="add", SUBSYSTEM=="net", ENV{ID_NET_NAME_MAC}=="enx5444a32b41e2", RUN+="/usr/bin/systemctl start net-config@con-sm"
ACTION=="add", SUBSYSTEM=="net", ENV{ID_NET_NAME_MAC}=="enx5444a32b41e2", RUN+="/usr/bin/systemctl start set-wifi-and-flush-neigh@off"
ACTION=="remove", SUBSYSTEM=="net", ENV{ID_NET_NAME_MAC}=="enx5444a32b41e2", RUN+="/usr/bin/systemctl start set-wifi-and-flush-neigh@on"
# opler monitor: configuration
ACTION=="add", SUBSYSTEM=="net", ENV{ID_NET_NAME_MAC}=="enxb04f13d22d4b", RUN+="/usr/bin/systemctl start net-config@con-opler"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment