Debian Codegraph @

scripts/sbin/drbl-conf-functions

raw symbols SCIP
1 #!/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 [ -f /etc/rc.d/init.d/functions ] && . /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 [ ! -f "/etc/drbl/drbl.conf" ]; then
15 echo "File /etc/drbl/drbl.conf not found! Program terminated!"
16 exit 1
17 fi
18 . /etc/drbl/drbl.conf
19
20 # check if drbl-functions exists
21 if [ ! -f "$DRBL_SCRIPT_PATH/sbin/drbl-functions" ]; then
22 echo "File $DRBL_SCRIPT_PATH/sbin/drbl-functions not found! Program terminated!"
23 exit 1
24 fi
25 . $DRBL_SCRIPT_PATH/sbin/drbl-functions