#! /bin/sh set -e PREFIX=$1 shift trap 'rm -r $TMPDIR' 0 TMPDIR=`mktemp -d` exec 3>/dev/null for f; do while IFS=" " read -r LINE; do case "$LINE" in *$PREFIX:[0-9]*:\**) NUM=`echo "$LINE" | sed "s/.*$PREFIX:\([0-9]*\).*/\1/"` if [ -f $TMPDIR/$NUM ]; then echo "$TMPDIR/$NUM already exits prior to $f" exit 1 fi exec 3>>$TMPDIR/$NUM echo $f | sed 's,\.\./,,g' > $TMPDIR/.$NUM /bin/echo "$LINE" | sed -e "s/$PREFIX:[0-9]*//" -e "s/:\*/*/" >&3 ;; *$PREFIX:[0-9]*) NUM=`echo "$LINE" | sed "s/.*$PREFIX:\([0-9]*\).*/\1/"` if [ -f $TMPDIR/$NUM ]; then echo "$TMPDIR/$NUM already exits prior to $f" exit 1 fi exec 3>>$TMPDIR/$NUM echo $f | sed 's,\.\./,,g' > $TMPDIR/.$NUM /bin/echo "$LINE" | sed "s/$PREFIX:[0-9]*//" >&3 ;; *:\**) /bin/echo "$LINE" | sed -e "s/:\*/*/" -e "s,/\*\*/,," >&3 echo >&3 exec 3>/dev/null ;; *) /bin/echo "$LINE" >&3 ;; esac done < $f echo >&3 exec 3>/dev/null done LASTFILE="" for f in $TMPDIR/*; do if [ "$LASTFILE" != $(cat $TMPDIR/.$(basename $f) ) ]; then LASTFILE=$(cat $TMPDIR/.$(basename $f) ) echo "[ $LASTFILE ]" fi cat $f done aster net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
path: root/net/bluetooth/a2mp.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2016-12-11 10:17:39 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2016-12-11 10:17:39 -0800
commit2e4333c14de06a333783d6812cf3c4998f78b0c8 (patch)
tree368428514d70f34f2261c7f954f241f886d6bb51 /net/bluetooth/a2mp.c
parent045169816b31b10faed984b01c390db1b32ee4c1 (diff)
parentba735155b9647b6167fd50276ca0fbfbce4e836c (diff)
Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus
Pull MIPS fixes from Ralf Baechle: "Two more MIPS fixes for 4.9: - RTC: Return -ENODEV so an external RTC will be tried - Fix mask of GPE frequency These two have been tested on Imagination's automated test system and also both received positive reviews on the linux-mips mailing list" * 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus: MIPS: Lantiq: Fix mask of GPE frequency MIPS: Return -ENODEV from weak implementation of rtc_mips_set_time
Diffstat (limited to 'net/bluetooth/a2mp.c')