summaryrefslogtreecommitdiffstats
path: root/tools/templates/core_pkg/default-config-serial/metadir/+INSTALL
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2015-08-25 08:21:15 -0300
committerRenato Botelho <renato@netgate.com>2015-08-25 14:49:54 -0300
commit6f73c36226d8583b90ddcff50850701c06de2ee2 (patch)
treef040c4a5dfd77e9d14a8197f0c1e080c157fa2a5 /tools/templates/core_pkg/default-config-serial/metadir/+INSTALL
parent46bc6e545a17e77202aaf01ec0cd8d5a46567525 (diff)
downloadpfsense-6f73c36226d8583b90ddcff50850701c06de2ee2.zip
pfsense-6f73c36226d8583b90ddcff50850701c06de2ee2.tar.gz
Import build scripts from pfSense-tools repo
Diffstat (limited to 'tools/templates/core_pkg/default-config-serial/metadir/+INSTALL')
-rw-r--r--tools/templates/core_pkg/default-config-serial/metadir/+INSTALL15
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/templates/core_pkg/default-config-serial/metadir/+INSTALL b/tools/templates/core_pkg/default-config-serial/metadir/+INSTALL
new file mode 100644
index 0000000..11c69cd
--- /dev/null
+++ b/tools/templates/core_pkg/default-config-serial/metadir/+INSTALL
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+if [ "${2}" != "POST-INSTALL" ]; then
+ exit 0
+fi
+
+if [ ! -f /cf/conf/config.xml ]; then
+ cp /conf.default/config.xml /cf/conf/config.xml
+fi
+
+if [ ! -L /conf ]; then
+ ln -sf /cf/conf /conf
+fi
+
+exit 0
OpenPOWER on IntegriCloud