Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
UserConfig
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jiří Kalvoda
UserConfig
Commits
72cd80fb
Commit
72cd80fb
authored
1 year ago
by
Jiří Kalvoda
Browse files
Options
Downloads
Patches
Plain Diff
NET += opler
parent
1f9acdb8
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
network/hopik/scripts/con-opler
+13
-0
13 additions, 0 deletions
network/hopik/scripts/con-opler
network/jk-net.rules
+5
-0
5 additions, 0 deletions
network/jk-net.rules
with
18 additions
and
0 deletions
network/hopik/scripts/con-opler
0 → 100755
+
13
−
0
View file @
72cd80fb
#!/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
This diff is collapsed.
Click to expand it.
network/jk-net.rules
+
5
−
0
View file @
72cd80fb
...
...
@@ -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"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment