24 lines
495 B
Plaintext
24 lines
495 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
#
|
||
|
# Make sure all required tools are installed.
|
||
|
#
|
||
|
workplace_toolcheck(){
|
||
|
## BINARIES IN PATH ##
|
||
|
bin_tool_list=("grep xeventbind")
|
||
|
for b in $bin_tool_list; do
|
||
|
if [[ ! -f $(which "$b") ]]; then
|
||
|
log_error "Missing tool '$b'"
|
||
|
fi
|
||
|
done
|
||
|
|
||
|
|
||
|
## DPKG PACKAGES ##
|
||
|
dpkg_tool_list=("gawk sed findutils procps usbutils libglib2.0-bin")
|
||
|
for d in $dpkg_tool_list; do
|
||
|
if ! dpkg -s $d 2>&1 | grep -q "Status: install ok installed"; then
|
||
|
log_error "Missing tool '$d'"
|
||
|
fi
|
||
|
done
|
||
|
}
|