Alias busybox pgrep/pkill only if apples are available

The Debian busybox does not provide those applets. This makes no
difference for PostmarketOS as they are an alias to busybox.

Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
master
Jochen Sprickerhof 4 years ago committed by Maarten van Gompel
parent 50f58e9ec3
commit cafd100d28
  1. 3
      scripts/core/sxmo_common.sh

@ -34,8 +34,11 @@ alias dmenu="sxmo_dmenu.sh"
alias st="sxmo_terminal.sh" alias st="sxmo_terminal.sh"
alias find="busybox find" alias find="busybox find"
# Use native commands if busybox was compile without those apples (for example Debians busybox)
if busybox pkill -l > /dev/null; then
alias pkill="busybox pkill" alias pkill="busybox pkill"
alias pgrep="busybox pgrep" alias pgrep="busybox pgrep"
fi
alias xargs="busybox xargs" alias xargs="busybox xargs"
alias less="busybox less" alias less="busybox less"
alias tail="busybox tail" alias tail="busybox tail"

Loading…
Cancel
Save