Blame view

buildroot/buildroot-2016.08.1/package/systemd/network.service 601 Bytes
6b13f685e   김민수   BSP 최초 추가
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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