treewide: replace `which` with `command -v`
[openwrt/openwrt.git] / package / system / zram-swap / files / zram.init
index a6126e578f1feee445a6b245f85c255aa0cf05f7..42c084855ab68bde04bfef7ff81ab31379be913a 100755 (executable)
@@ -35,17 +35,17 @@ zram_applicable()
                return 1
        }
 
-       which mkswap >/dev/null || {
+       command -v mkswap >/dev/null || {
                logger -s -t zram_applicable -p daemon.err "[ERROR] 'mkswap' not installed"
                return 1
        }
 
-       which swapon >/dev/null || {
+       command -v swapon >/dev/null || {
                logger -s -t zram_applicable -p daemon.err "[ERROR] 'swapon' not installed"
                return 1
        }
 
-       which swapoff >/dev/null || {
+       command -v swapoff >/dev/null || {
                logger -s -t zram_applicable -p daemon.err "[ERROR] 'swapoff' not installed"
                return 1
        }