From abc09ddbb12d4332a08b115e1b69baec9a1b030a Mon Sep 17 00:00:00 2001
From: vogelor <vogelor@ispconfig3>
Date: Thu, 18 Dec 2008 07:08:38 -0500
Subject: [PATCH] improvement of the RAID-State
---
server/plugins-available/network_settings_plugin.inc.php | 17 ++++++++++++++++-
1 files changed, 16 insertions(+), 1 deletions(-)
diff --git a/server/plugins-available/network_settings_plugin.inc.php b/server/plugins-available/network_settings_plugin.inc.php
index 94e37b4..53619b2 100644
--- a/server/plugins-available/network_settings_plugin.inc.php
+++ b/server/plugins-available/network_settings_plugin.inc.php
@@ -1,7 +1,7 @@
<?php
/*
-Copyright (c) 2008, Till Brehm, projektfarm Gmbh
+Copyright (c) 2007, Till Brehm, projektfarm Gmbh
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
@@ -33,6 +33,15 @@
var $plugin_name = 'network_settings_plugin';
var $class_name = 'network_settings_plugin';
+
+ //* This function is called during ispconfig installation to determine
+ // if a symlink shall be created for this plugin.
+ function onInstall() {
+ global $conf;
+
+ return true;
+
+ }
/*
This function is called when the plugin is loaded
@@ -113,6 +122,12 @@
$app->log("Changed Network settings",LOGLEVEL_DEBUG);
exec('/etc/init.d/networking force-reload');
+ } else {
+ if(is_file('/etc/debian_version')) {
+ $app->log("Network configuration disabled in server settings.",LOGLEVEL_WARN);
+ } else {
+ $app->log("Network configuration not available for this linux distribution.",LOGLEVEL_DEBUG);
+ }
}
}
--
Gitblit v1.9.1