24 lines
816 B
Desktop File
24 lines
816 B
Desktop File
[Unit]
|
|
Description=Mesh creation
|
|
Wants=network.target sys-subsystem-net-devices-wlan0.device
|
|
After=sys-subsystem-net-devices-wlan0.device
|
|
|
|
[Service]
|
|
RemainAfterExit=yes
|
|
ExecStartPre=/sbin/modprobe batman-adv
|
|
ExecStartPre=/sbin/ip link set up mtu 1500 dev %I
|
|
ExecStartPre=/sbin/iw %I set type ibss
|
|
ExecStartPre=/sbin/iw %I ibss join NVIDIA 5220 ca:92:26:4b:32:5a
|
|
ExecStartPre=/usr/local/sbin/batctl if add %I
|
|
ExecStartPre=/sbin/ip link set up mtu 1460 dev bat0
|
|
#ExecStartPre=/usr/local/bin/copymac.sh %I
|
|
ExecStart=/sbin/dhclient -4 -v -pf /run/dhclient.bat0.pid -lf /var/lib/dhcp/dhclient.bat0.leases bat0
|
|
ExecStop=/sbin/ip link set %I down
|
|
ExecStop=/sbin/ip addr flush dev %I
|
|
ExecStop=/sbin/iw %I set type managed
|
|
ExecStop=/sbin/rmmod batman-adv
|
|
Restart=on-failure
|
|
RestartSec=10
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target |