inital commit
This commit is contained in:
10
to_system/etc/systemd/system/router.service
Normal file
10
to_system/etc/systemd/system/router.service
Normal file
@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description = Routing to locally connected hardware
|
||||
After = network.target
|
||||
|
||||
[Service]
|
||||
ExecStart = /usr/bin/python3 /root/aputools/router.py
|
||||
|
||||
[Install]
|
||||
WantedBy = multi-user.target
|
||||
|
12
to_system/etc/systemd/system/sethostname.service
Normal file
12
to_system/etc/systemd/system/sethostname.service
Normal file
@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description = Create host name from ethernet address
|
||||
Wants=network-pre.target
|
||||
Before=network.pre-target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart = /usr/bin/bash /root/aputools/sethostname.sh
|
||||
RemainAfterExit=yes
|
||||
|
||||
[Install]
|
||||
WantedBy = network.target
|
Reference in New Issue
Block a user