mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-03 04:07:52 +00:00
change rpm check to use 'which' and added tshark in dependency check
Signed-off-by: Isaac Konikoff <konikofi@candelatech.com>
This commit is contained in:
@@ -17,10 +17,11 @@
|
|||||||
present=(
|
present=(
|
||||||
gnuplot
|
gnuplot
|
||||||
wkhtmltopdf
|
wkhtmltopdf
|
||||||
|
tshark
|
||||||
)
|
)
|
||||||
killcommand=0
|
killcommand=0
|
||||||
for i in "${present[@]}"; do
|
for i in "${present[@]}"; do
|
||||||
present=$(expr length "$(rpm -qa | grep $i)")
|
present=$(expr length "$(which $i)")
|
||||||
if [[ $present -gt 0 ]]; then
|
if [[ $present -gt 0 ]]; then
|
||||||
:
|
:
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user