File: drbl-conf-functions

package info (click to toggle)
drbl 5.7.11-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 6,984 kB
  • sloc: sh: 43,522; perl: 8,820; xml: 867; makefile: 131
file content (25 lines) | stat: -rwxr-xr-x 695 bytes parent folder | download | duplicates (5)
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
#!/bin/bash
# Author: Steven Shiau <steven _at_ clonezilla org>
# License: GPL
# Run DRBL conf and functions

# Setting
# Source function library.
[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions

# Load DRBL setting and functions
DRBL_SCRIPT_PATH="${DRBL_SCRIPT_PATH:-/usr/share/drbl}"

# Source DRBL setting
if [ ! -f "/etc/drbl/drbl.conf" ]; then
  echo "File /etc/drbl/drbl.conf not found! Program terminated!" 
  exit 1
fi
. /etc/drbl/drbl.conf

# check if drbl-functions exists
if [ ! -f "$DRBL_SCRIPT_PATH/sbin/drbl-functions" ]; then
  echo "File $DRBL_SCRIPT_PATH/sbin/drbl-functions not found! Program terminated!" 
  exit 1
fi
. $DRBL_SCRIPT_PATH/sbin/drbl-functions