This repository has been archived by the owner on Jun 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
check-tool
executable file
·39 lines (36 loc) · 1.81 KB
/
check-tool
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
echo "Let's check installed packages."
RET_MESSAGE=`which rtmpdump`
if [ $? -eq 1 ]; then echo "Not install 'rtmpdump' package."; fi
RET_MESSAGE=`which swfextract`
if [ $? -eq 1 ]; then echo "Not install 'swftools' package."; fi
RET_MESSAGE=`which ffmpeg`
if [ $? -eq 1 ]; then echo "Not install 'ffmpeg' package(need mp3-module)."; fi
RET_MESSAGE=`which vlc`
if [ $? -eq 1 ]; then echo "Not install 'vlc' package."; fi
RET_MESSAGE=`which sudo`
if [ $? -eq 1 ]; then echo "Not install 'sudo' package."; fi
RET_MESSAGE=`which wget`
if [ $? -eq 1 ]; then echo "Not install 'wget' package."; fi
RET_MESSAGE=`which base64`
if [ $? -eq 1 ]; then echo "Not install 'base64' package."; fi
RET_MESSAGE=`which perldoc && perldoc -m strict 2>&1 > /dev/null`
if [ $? -eq 1 ]; then echo "Not install 'perl-doc' package."; exit 1; fi
echo ""
echo "Let's check installed perl modules."
RET_MESSAGE=`perldoc -m Config::Simple 2>&1 > /dev/null`
if [ $? -eq 1 ]; then echo "Not install 'Config::Simple' module."; fi
RET_MESSAGE=`perldoc -m Encode 2>&1 > /dev/null`
if [ $? -eq 1 ]; then echo "Not install 'Encode' module."; fi
RET_MESSAGE=`perldoc -m File::Spec 2>&1 > /dev/null`
if [ $? -eq 1 ]; then echo "Not install 'File::Spec' module."; fi
RET_MESSAGE=`perldoc -m JSON 2>&1 > /dev/null`
if [ $? -eq 1 ]; then echo "Not install 'JSON' module."; fi
RET_MESSAGE=`perldoc -m LWP::UserAgent 2>&1 > /dev/null`
if [ $? -eq 1 ]; then echo "Not install 'LWP::UserAgent' module."; fi
RET_MESSAGE=`perldoc -m XML::Simple 2>&1 > /dev/null`
if [ $? -eq 1 ]; then echo "Not install 'XML::Simple' module."; fi
RET_MESSAGE=`perldoc -m Unicode::Japanese 2>&1 > /dev/null`
if [ $? -eq 1 ]; then echo "Not install 'Unicode::Japanese' module."; fi
RET_MESSAGE=`perldoc -m MIME::Base64 2>&1 > /dev/null`
if [ $? -eq 1 ]; then echo "Not install 'MIME::Base64' module."; fi