Lines Matching +full:sync +full:- +full:2
4 # SPDX-License-Identifier: BSD-2-Clause
13 # 2. Redistributions in binary form must reproduce the above copyright
37 [ `id -u ` -ne 0 ] && echo "Must be root!" && exit 1
38 if=`ifconfig | grep -w mtu | grep -v RUNNING | sed 's/:.*//' | head -1`
39 [ -z "$if" ] &&
41 awk '/^[a-z].*: / {gsub(":", ""); ifn = $1}; /no car/{print ifn; exit}'`
43 [ -z "$if" ] && exit 0
45 ifconfig $if | grep -q RUNNING && running=1
47 sync=/tmp/`basename $0`.sync
48 rm -f $sync
51 while [ ! -f $sync ]; do
54 while [ -f $sync ]; do
59 ) > /dev/null 2>&1 &
61 touch $sync
63 rm -f $sync