wok diff linux-zram/stuff/compcache @ rev 22023
Remove cat process
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Oct 20 12:39:13 2019 +0200 (2019-10-20) |
parents | 2ba7edb00cce |
children | 5cfd86a4f9d1 |
line diff
1.1 --- a/linux-zram/stuff/compcache Sat Oct 05 11:36:18 2019 +0200 1.2 +++ b/linux-zram/stuff/compcache Sun Oct 20 12:39:13 2019 +0200 1.3 @@ -8,11 +8,11 @@ 1.4 1.5 NAME="compcache" 1.6 DESC="$(_ '%s daemon' compcache)" 1.7 -EXIST=$(cat /proc/swaps | grep zram0) 1.8 +EXIST="$(grep -s zram0 /proc/swaps)" 1.9 1.10 case "$1" in 1.11 start) 1.12 - if [ -n "$EXIST" ] ; then 1.13 + if [ "$EXIST" ] ; then 1.14 _ '%s is already running.' $NAME 1.15 exit 1 1.16 fi