Debian Codegraph @

check_hp_bladechassis/src/install.sh

raw symbols SCIP
1 #!/bin/shscip-shell filesystem . . `/bin/sh`.
2
3 if [scip-shell system . . `[`. "`unamescip-shell system . . uname. -m`" = "x86_64" ]; then
4 def_install_dir=/usr/lib64/nagios/pluginsscip-shell filesystem . . `/usr/lib64/nagios/plugins`.
5 else
6 def_install_dir=/usr/lib/nagios/pluginsscip-shell filesystem . . `/usr/lib/nagios/plugins`.
7 fi
8 def_mandir=/usr/share/man/man8scip-shell filesystem . . `/usr/share/man/man8`.
9
10 if [scip-shell system . . `[`. "$1" = "-q" ]; then
11 install_dir=$def_install_dir
12 mandir=$def_mandir
13 else
14 echoscip-shell system . . echo. -n "Plugin dir [$def_install_dir]: "
15 read install_dir
16 if [scip-shell system . . `[`. "$install_dir" = "" ]; then
17 install_dir=$def_install_dir
18 fi
19 echoscip-shell system . . echo. -n "Man page dir [$def_mandir]: "
20 read mandir
21 if [scip-shell system . . `[`. "$mandir" = "" ]; then
22 mandir=$def_mandir
23 fi
24 fi
25
26 if [scip-shell system . . `[`. -d $install_dir ]; then
27 :
28 else
29 echoscip-shell system . . echo. "ERROR: Plugin directory $install_dir doesn't exist,"
30 echoscip-shell system . . echo. "ERROR: or is not a directory"
31 exit 1
32 fi
33
34 if [scip-shell system . . `[`. -d $mandir ]; then
35 :
36 else
37 echoscip-shell system . . echo. "ERROR: Man page directory $mandir doesn't exist,"
38 echoscip-shell system . . echo. "ERROR: or is not a directory"
39 exit 1
40 fi
41
42 # The script and symlinks
43 cpscip-shell system . . cp. check_hp_bladechassis $install_dir
44
45 # The man page
46 cpscip-shell system . . cp. check_hp_bladechassis.8 $mandir
47
48 # Done
49 echoscip-shell system . . echo. "done."
50 exit 0