Magellan Linux

Contents of /trunk/dracut/kill-dhcpcd.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3217 - (show annotations) (download) (as text)
Thu Aug 23 12:12:40 2018 UTC (5 years, 8 months ago) by niro
File MIME type: application/x-sh
File size: 248 byte(s)
-added network scripts
1 #!/bin/sh
2
3 for f in /tmp/dhcpcd.*.pid; do
4 [ -e $f ] || continue
5 read PID < $f;
6 kill $PID >/dev/null 2>&1
7 done
8
9 sleep 0.1
10
11 for f in /tmp/dhcpcd.*.pid; do
12 [ -e $f ] || continue
13 read PID < $f;
14 kill -9 $PID >/dev/null 2>&1
15 done