Bump buidlroot version to 2018.02.6
This commit is contained in:
21
bsp/buildroot/package/ifupdown-scripts/network.service
Normal file
21
bsp/buildroot/package/ifupdown-scripts/network.service
Normal file
@@ -0,0 +1,21 @@
|
||||
[Unit]
|
||||
Description=Network Connectivity
|
||||
Wants=network.target
|
||||
Before=network.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
|
||||
# lo is brought up earlier, which will cause the upcoming "ifup -a" to fail
|
||||
# with exit code 1, due to an "ip: RTNETLINK answers: File exists" error during
|
||||
# its "ip addr add ..." command, subsequently causing this unit to fail even
|
||||
# though it is a benign error. Flushing the lo address with the command below
|
||||
# before ifup prevents this failure.
|
||||
ExecStart=/sbin/ip addr flush dev lo
|
||||
|
||||
ExecStart=/sbin/ifup -a
|
||||
ExecStop=/sbin/ifdown -a
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user