]> rtime.felk.cvut.cz Git - coffee/buildroot.git/blob - package/ifupdown-scripts/network.service
lrzsz: install symlinks for XMODEM and YMODEM
[coffee/buildroot.git] / package / ifupdown-scripts / network.service
1 [Unit]
2 Description=Network Connectivity
3 Wants=network.target
4 Before=network.target
5
6 [Service]
7 Type=oneshot
8 RemainAfterExit=yes
9
10 # lo is brought up earlier, which will cause the upcoming "ifup -a" to fail
11 # with exit code 1, due to an "ip: RTNETLINK answers: File exists" error during
12 # its "ip addr add ..." command, subsequently causing this unit to fail even
13 # though it is a benign error. Flushing the lo address with the command below
14 # before ifup prevents this failure.
15 ExecStart=/sbin/ip addr flush dev lo
16
17 ExecStart=/sbin/ifup -a
18 ExecStop=/sbin/ifdown -a
19
20 [Install]
21 WantedBy=multi-user.target