Debian Codegraph @

scripts/sbin/drbl-conf-functions

raw symbols SCIP
1 #!/bin/bashscip-shell filesystem . . `/bin/bash`.
2 # Author: Steven Shiau <steven _at_ clonezilla org>
3 # License: GPL
4 # Run DRBL conf and functions
5
6 # Setting
7 # Source function library.
8 [scip-shell system . . `[`. -f /etc/rc.d/init.d/functionsscip-shell filesystem . . `/etc/rc.d/init.d/functions`. ] && . /etc/rc.d/init.d/functionsscip-shell source . . `/etc/rc.d/init.d/functions`.
9
10 # Load DRBL setting and functions
11 DRBL_SCRIPT_PATH="${DRBL_SCRIPT_PATH:-/usr/share/drbl}"
12
13 # Source DRBL setting
14 if [scip-shell system . . `[`. ! -f "/etc/drbl/drbl.confscip-shell filesystem . . `/etc/drbl/drbl.conf`." ]; then
15 echoscip-shell system . . echo. "File /etc/drbl/drbl.conf not found! Program terminated!"
16 exit 1
17 fi
18 . /etc/drbl/drbl.confscip-shell source . . `/etc/drbl/drbl.conf`.
19
20 # check if drbl-functions exists
21 if [scip-shell system . . `[`. ! -f "$DRBL_SCRIPT_PATH/sbin/drbl-functions" ]; then
22 echoscip-shell system . . echo. "File $DRBL_SCRIPT_PATH/sbin/drbl-functions not found! Program terminated!"
23 exit 1
24 fi
25 . $DRBL_SCRIPT_PATH/sbin/drbl-functions