# HG changeset patch # User Pascal Bellard # Date 1571567953 -7200 # Node ID ac1cbda6d814d3545530702614c960eb561b14a3 # Parent d6c7b77095a9b19366a9b4167ec3f387d1db4089 Remove cat process diff -r d6c7b77095a9 -r ac1cbda6d814 linux-zram/stuff/compcache --- a/linux-zram/stuff/compcache Sun Oct 20 11:32:40 2019 +0100 +++ b/linux-zram/stuff/compcache Sun Oct 20 12:39:13 2019 +0200 @@ -8,11 +8,11 @@ NAME="compcache" DESC="$(_ '%s daemon' compcache)" -EXIST=$(cat /proc/swaps | grep zram0) +EXIST="$(grep -s zram0 /proc/swaps)" case "$1" in start) - if [ -n "$EXIST" ] ; then + if [ "$EXIST" ] ; then _ '%s is already running.' $NAME exit 1 fi diff -r d6c7b77095a9 -r ac1cbda6d814 linux64-zram/stuff/compcache --- a/linux64-zram/stuff/compcache Sun Oct 20 11:32:40 2019 +0100 +++ b/linux64-zram/stuff/compcache Sun Oct 20 12:39:13 2019 +0200 @@ -8,11 +8,11 @@ NAME="compcache" DESC="$(_ '%s daemon' compcache)" -EXIST=$(cat /proc/swaps | grep zram0) +EXIST="$(grep -s zram0 /proc/swaps)" case "$1" in start) - if [ -n "$EXIST" ] ; then + if [ "$EXIST" ] ; then _ '%s is already running.' $NAME exit 1 fi diff -r d6c7b77095a9 -r ac1cbda6d814 sdft/stuff/sdft --- a/sdft/stuff/sdft Sun Oct 20 11:32:40 2019 +0100 +++ b/sdft/stuff/sdft Sun Oct 20 12:39:13 2019 +0200 @@ -121,8 +121,8 @@ extract 'NoDisplay' extract 'MimeType' | semicolon - cat $WORKING/section | sort | sed -n '/^$/!p' - [ "$REMOVE_OTHER" != 'yes' ] && cat $WORKING/rest | sed -n '/^$/!p' + sort < $WORKING/section | sed -n '/^$/!p' + [ "$REMOVE_OTHER" != 'yes' ] && sed -n '/^$/!p' < $WORKING/rest } > $WORKING/new diff -r d6c7b77095a9 -r ac1cbda6d814 syslinux/stuff/iso2exe/iso2exe.sh --- a/syslinux/stuff/iso2exe/iso2exe.sh Sun Oct 20 11:32:40 2019 +0100 +++ b/syslinux/stuff/iso2exe/iso2exe.sh Sun Oct 20 12:39:13 2019 +0200 @@ -47,7 +47,7 @@ store 24 $SIZE $1 OFS=$(( 0x7FF0 - $SIZE )) printf "Adding rootfs.gz file at %04X (%d bytes) ...\n" $OFS $SIZE - cat $TMP/rootfs.gz | ddn of=$1 bs=1 seek=$OFS + ddn if=$TMP/rootfs.gz of=$1 bs=1 seek=$OFS rm -rf $TMP }