aboutsummaryrefslogtreecommitdiff
path: root/my-x200.initd
diff options
context:
space:
mode:
Diffstat (limited to 'my-x200.initd')
-rw-r--r--my-x200.initd13
1 files changed, 13 insertions, 0 deletions
diff --git a/my-x200.initd b/my-x200.initd
index 545a778..01040da 100644
--- a/my-x200.initd
+++ b/my-x200.initd
@@ -24,12 +24,25 @@ NAME=my-x200
24# Read configuration variable file if it is present 24# Read configuration variable file if it is present
25[ -r /etc/default/$NAME ] && . /etc/default/$NAME 25[ -r /etc/default/$NAME ] && . /etc/default/$NAME
26 26
27# Read additional configuration files in /etc/default/my-x200.d/
28confdir="/etc/default/my-x200.d"
29
30if [ -d "$confdir" ] && [ -f "$confdir"/*.conf ]
31then
32 for file in "$confdir"/*.conf
33 do
34 . "$file"
35 done
36fi
37
38# Get my-x200 variables
27x200_cmdfreq="/usr/bin/intel_reg" 39x200_cmdfreq="/usr/bin/intel_reg"
28pwmfreq="${PWMFREQ_RATE}" 40pwmfreq="${PWMFREQ_RATE}"
29x200_cmdfreq_args="write 0x00061254 $pwmfreq" 41x200_cmdfreq_args="write 0x00061254 $pwmfreq"
30autobackup="${conf_autobackup}" 42autobackup="${conf_autobackup}"
31backup_path="${conf_backup_path}" 43backup_path="${conf_backup_path}"
32control_file="${conf_control_file}" 44control_file="${conf_control_file}"
45
33if [ "$use_rsnapshot" = "true" ] 46if [ "$use_rsnapshot" = "true" ]
34then 47then
35 backup_cmd="/usr/bin/rsnapshot" 48 backup_cmd="/usr/bin/rsnapshot"