|
From: <abe...@us...> - 2014-03-18 22:13:50
|
Revision: 6470
http://sourceforge.net/p/astlinux/code/6470
Author: abelbeck
Date: 2014-03-18 22:13:47 +0000 (Tue, 18 Mar 2014)
Log Message:
-----------
restore-basic-conf, add phoneprov templates directory to restore
Modified Paths:
--------------
branches/1.0/project/astlinux/target_skeleton/usr/sbin/restore-basic-conf
Modified: branches/1.0/project/astlinux/target_skeleton/usr/sbin/restore-basic-conf
===================================================================
--- branches/1.0/project/astlinux/target_skeleton/usr/sbin/restore-basic-conf 2014-03-18 21:19:00 UTC (rev 6469)
+++ branches/1.0/project/astlinux/target_skeleton/usr/sbin/restore-basic-conf 2014-03-18 22:13:47 UTC (rev 6470)
@@ -7,9 +7,16 @@
# The target_dir will typically be "/mnt/kd"
#
#
+
+. /etc/rc.conf
+
RESTORE="$1"
TARGET="$2"
+phoneprov_templates="${PHONEPROV_BASE_DIR:-/mnt/kd/phoneprov}"
+phoneprov_templates="${phoneprov_templates%/}/templates"
+phoneprov_templates="${phoneprov_templates#/mnt/kd/}"
+
restore_dirs()
{
local dir IFS
@@ -69,7 +76,7 @@
# Restore basic configuration directories, overlaying target directory
#
-if ! restore_files ssl arno-iptables-firewall/plugins; then
+if ! restore_files ssl arno-iptables-firewall/plugins ${phoneprov_templates}; then
exit 2
fi
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|