summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/phpshellsessions/removepkgconfig8
1 files changed, 8 insertions, 0 deletions
diff --git a/etc/phpshellsessions/removepkgconfig b/etc/phpshellsessions/removepkgconfig
new file mode 100644
index 0000000..ea365bf
--- /dev/null
+++ b/etc/phpshellsessions/removepkgconfig
@@ -0,0 +1,8 @@
+global $config;
+$config = parse_config(true);
+unset($config['installedpackages']);
+echo "Clearing package configuration information...\n";
+write_config("pfSsh.php cleared package configuration data.");
+$config = parse_config(true);
+echo "Removing startup files from /usr/local/etc/rc.d/...\n";
+exec("rm /usr/local/etc/rc.d/*");
OpenPOWER on IntegriCloud