aboutsummaryrefslogtreecommitdiffstats
path: root/config/jail_template
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2014-05-22 19:45:28 -0500
committerChris Buechler <cmb@pfsense.org>2014-05-22 19:45:28 -0500
commit8ba84ead554bffa9cc697a2989be196b06c1b0cd (patch)
tree288b57e1e8550618d8ad52e999a01262fb8007df /config/jail_template
parent8524a8fb7596aaa1f3dd4bf17ce2e81f7ba79ac9 (diff)
downloadpfsense-packages-8ba84ead554bffa9cc697a2989be196b06c1b0cd.tar.gz
pfsense-packages-8ba84ead554bffa9cc697a2989be196b06c1b0cd.tar.bz2
pfsense-packages-8ba84ead554bffa9cc697a2989be196b06c1b0cd.zip
move jail package bits to archive
Diffstat (limited to 'config/jail_template')
-rw-r--r--config/jail_template/jail_template.img.uzipbin63200768 -> 0 bytes
-rw-r--r--config/jail_template/jail_template.inc32
2 files changed, 0 insertions, 32 deletions
diff --git a/config/jail_template/jail_template.img.uzip b/config/jail_template/jail_template.img.uzip
deleted file mode 100644
index 1c92fb90..00000000
--- a/config/jail_template/jail_template.img.uzip
+++ /dev/null
Binary files differ
diff --git a/config/jail_template/jail_template.inc b/config/jail_template/jail_template.inc
deleted file mode 100644
index f9c00b79..00000000
--- a/config/jail_template/jail_template.inc
+++ /dev/null
@@ -1,32 +0,0 @@
-<?php
-function jail_template_install() {
- exec('mkdir /usr/jail_template');
- ## exec('tar -C /usr/jail_template -yxf /tmp/jail_template.tar.bz2 2&gt;&amp;1 &amp;');
- $_rcfile['file']='000.jail_template.sh';
- $_rcfile['start']='';
- $_rcfile['stop']='';
- $_rcfile['start'].='mount -o ro /dev/`mdconfig -af /usr/jail_template.img.uzip`.uzip /usr/jail_template '."\n\t";
- $_rcfile['stop'].='umount -f /usr/jail_template '."\n\t";
- $_rcfile['stop'].='mdconfig -d -u `expr "$(mdconfig -l -v | grep jail_template | grep -v grep)" : "md\([0-9]*\)"` '."\n\t";
- write_rcfile($_rcfile);
- exec('mount -o ro /dev/`mdconfig -af /usr/jail_template.img.uzip`.uzip /usr/jail_template');
-
- $GLOBALS['config']['installedpackages']['pfjailctltemplates']['config'][0]['templates']['jail_template']['name']=
- 'pfSense default jail template';
- $GLOBALS['config']['installedpackages']['pfjailctltemplates']['config'][0]['templates']['jail_template']['path']=
- '/usr/jail_template';
-}
-
-function jail_template_deinstall() {
- exec('umount -f /usr/jail_template');
- exec('mdconfig -d -u `expr "$(mdconfig -l -v | grep jail_template | grep -v grep)" : "md\([0-9]*\)');
- unset($GLOBALS['config']['installedpackages']['pfjailctltemplates']['config'][0]['templates']['jail_template']);
-}
-
-function jail_template_resync() {
- $GLOBALS['config']['installedpackages']['pfjailctltemplates']['config'][0]['templates']['jail_template']['name']=
- 'pfSense default jail template';
- $GLOBALS['config']['installedpackages']['pfjailctltemplates']['config'][0]['templates']['jail_template']['path']=
- '/usr/jail_template';
-}
-?> \ No newline at end of file