mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 03:33:25 +02:00
Merge branch 'master' into next
This commit is contained in:
23
config/dhcpc/dhcpcd.conf
Normal file
23
config/dhcpc/dhcpcd.conf
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
# A sample configuration for dhcpcd.
|
||||||
|
# See dhcpcd.conf(5) for details.
|
||||||
|
|
||||||
|
# Inform the DHCP server of our hostname for DDNS.
|
||||||
|
hostname
|
||||||
|
# To share the DHCP lease across OSX and Windows a ClientID is needed.
|
||||||
|
# Enabling this may get a different lease than the kernel DHCP client.
|
||||||
|
# Some upstream DHCP servers may also require a ClientID, such as FRITZ!Box.
|
||||||
|
#clientid
|
||||||
|
|
||||||
|
# A list of options to request from the DHCP server.
|
||||||
|
option domain_name_servers, domain_name, domain_search, host_name
|
||||||
|
option classless_static_routes
|
||||||
|
# Most distributions have NTP support.
|
||||||
|
option ntp_servers
|
||||||
|
# Respect the network MTU.
|
||||||
|
option interface_mtu
|
||||||
|
# A ServerID is required by RFC2131.
|
||||||
|
require dhcp_server_identifier
|
||||||
|
|
||||||
|
# A hook script is provided to lookup the hostname if not set by the DHCP
|
||||||
|
# server, but it should not be run by default.
|
||||||
|
nohook lookup-hostname
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
#
|
#
|
||||||
# Automatically generated file; DO NOT EDIT.
|
# Automatically generated file; DO NOT EDIT.
|
||||||
# Linux/x86 3.14.53 Kernel Configuration
|
# Linux/x86 3.14.57 Kernel Configuration
|
||||||
#
|
#
|
||||||
# CONFIG_64BIT is not set
|
# CONFIG_64BIT is not set
|
||||||
CONFIG_X86_32=y
|
CONFIG_X86_32=y
|
||||||
@@ -586,7 +586,7 @@ CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE=y
|
|||||||
# CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND is not set
|
# CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND is not set
|
||||||
# CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set
|
# CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set
|
||||||
CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
|
CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
|
||||||
CONFIG_CPU_FREQ_GOV_POWERSAVE=m
|
CONFIG_CPU_FREQ_GOV_POWERSAVE=y
|
||||||
CONFIG_CPU_FREQ_GOV_USERSPACE=y
|
CONFIG_CPU_FREQ_GOV_USERSPACE=y
|
||||||
CONFIG_CPU_FREQ_GOV_ONDEMAND=m
|
CONFIG_CPU_FREQ_GOV_ONDEMAND=m
|
||||||
CONFIG_CPU_FREQ_GOV_CONSERVATIVE=m
|
CONFIG_CPU_FREQ_GOV_CONSERVATIVE=m
|
||||||
@@ -594,7 +594,7 @@ CONFIG_CPU_FREQ_GOV_CONSERVATIVE=m
|
|||||||
#
|
#
|
||||||
# x86 CPU frequency scaling drivers
|
# x86 CPU frequency scaling drivers
|
||||||
#
|
#
|
||||||
# CONFIG_X86_INTEL_PSTATE is not set
|
CONFIG_X86_INTEL_PSTATE=y
|
||||||
CONFIG_X86_PCC_CPUFREQ=m
|
CONFIG_X86_PCC_CPUFREQ=m
|
||||||
CONFIG_X86_ACPI_CPUFREQ=m
|
CONFIG_X86_ACPI_CPUFREQ=m
|
||||||
# CONFIG_X86_ACPI_CPUFREQ_CPB is not set
|
# CONFIG_X86_ACPI_CPUFREQ_CPB is not set
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#
|
#
|
||||||
# Automatically generated file; DO NOT EDIT.
|
# Automatically generated file; DO NOT EDIT.
|
||||||
# Linux/x86 3.14.53 Kernel Configuration
|
# Linux/x86 3.14.57 Kernel Configuration
|
||||||
#
|
#
|
||||||
# CONFIG_64BIT is not set
|
# CONFIG_64BIT is not set
|
||||||
CONFIG_X86_32=y
|
CONFIG_X86_32=y
|
||||||
@@ -600,7 +600,7 @@ CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE=y
|
|||||||
# CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND is not set
|
# CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND is not set
|
||||||
# CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set
|
# CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set
|
||||||
CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
|
CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
|
||||||
CONFIG_CPU_FREQ_GOV_POWERSAVE=m
|
CONFIG_CPU_FREQ_GOV_POWERSAVE=y
|
||||||
CONFIG_CPU_FREQ_GOV_USERSPACE=y
|
CONFIG_CPU_FREQ_GOV_USERSPACE=y
|
||||||
CONFIG_CPU_FREQ_GOV_ONDEMAND=m
|
CONFIG_CPU_FREQ_GOV_ONDEMAND=m
|
||||||
CONFIG_CPU_FREQ_GOV_CONSERVATIVE=m
|
CONFIG_CPU_FREQ_GOV_CONSERVATIVE=m
|
||||||
@@ -608,7 +608,7 @@ CONFIG_CPU_FREQ_GOV_CONSERVATIVE=m
|
|||||||
#
|
#
|
||||||
# x86 CPU frequency scaling drivers
|
# x86 CPU frequency scaling drivers
|
||||||
#
|
#
|
||||||
# CONFIG_X86_INTEL_PSTATE is not set
|
CONFIG_X86_INTEL_PSTATE=y
|
||||||
CONFIG_X86_PCC_CPUFREQ=m
|
CONFIG_X86_PCC_CPUFREQ=m
|
||||||
CONFIG_X86_ACPI_CPUFREQ=m
|
CONFIG_X86_ACPI_CPUFREQ=m
|
||||||
# CONFIG_X86_ACPI_CPUFREQ_CPB is not set
|
# CONFIG_X86_ACPI_CPUFREQ_CPB is not set
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#
|
#
|
||||||
# Automatically generated file; DO NOT EDIT.
|
# Automatically generated file; DO NOT EDIT.
|
||||||
# Linux/x86 3.14.53 Kernel Configuration
|
# Linux/x86 3.14.57 Kernel Configuration
|
||||||
#
|
#
|
||||||
CONFIG_64BIT=y
|
CONFIG_64BIT=y
|
||||||
CONFIG_X86_64=y
|
CONFIG_X86_64=y
|
||||||
@@ -558,7 +558,7 @@ CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE=y
|
|||||||
# CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND is not set
|
# CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND is not set
|
||||||
# CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set
|
# CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set
|
||||||
CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
|
CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
|
||||||
CONFIG_CPU_FREQ_GOV_POWERSAVE=m
|
CONFIG_CPU_FREQ_GOV_POWERSAVE=y
|
||||||
CONFIG_CPU_FREQ_GOV_USERSPACE=y
|
CONFIG_CPU_FREQ_GOV_USERSPACE=y
|
||||||
CONFIG_CPU_FREQ_GOV_ONDEMAND=m
|
CONFIG_CPU_FREQ_GOV_ONDEMAND=m
|
||||||
CONFIG_CPU_FREQ_GOV_CONSERVATIVE=m
|
CONFIG_CPU_FREQ_GOV_CONSERVATIVE=m
|
||||||
@@ -566,7 +566,7 @@ CONFIG_CPU_FREQ_GOV_CONSERVATIVE=m
|
|||||||
#
|
#
|
||||||
# x86 CPU frequency scaling drivers
|
# x86 CPU frequency scaling drivers
|
||||||
#
|
#
|
||||||
# CONFIG_X86_INTEL_PSTATE is not set
|
CONFIG_X86_INTEL_PSTATE=y
|
||||||
CONFIG_X86_PCC_CPUFREQ=m
|
CONFIG_X86_PCC_CPUFREQ=m
|
||||||
CONFIG_X86_ACPI_CPUFREQ=m
|
CONFIG_X86_ACPI_CPUFREQ=m
|
||||||
# CONFIG_X86_ACPI_CPUFREQ_CPB is not set
|
# CONFIG_X86_ACPI_CPUFREQ_CPB is not set
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ etc/ipsec.user.conf
|
|||||||
etc/ipsec.user.secrets
|
etc/ipsec.user.secrets
|
||||||
etc/localtime
|
etc/localtime
|
||||||
etc/shadow
|
etc/shadow
|
||||||
|
etc/snort/snort.conf
|
||||||
etc/ssh/ssh_config
|
etc/ssh/ssh_config
|
||||||
etc/ssh/sshd_config
|
etc/ssh/sshd_config
|
||||||
etc/ssl/openssl.cnf
|
etc/ssl/openssl.cnf
|
||||||
|
|||||||
@@ -22,5 +22,6 @@ usr/local/bin/ipsecctrl
|
|||||||
usr/local/bin/settime
|
usr/local/bin/settime
|
||||||
usr/local/bin/timecheck
|
usr/local/bin/timecheck
|
||||||
var/ipfire/backup/exclude
|
var/ipfire/backup/exclude
|
||||||
|
var/ipfire/dhcpc/dhcpcd.conf
|
||||||
var/ipfire/langs
|
var/ipfire/langs
|
||||||
var/ipfire/network-functions.pl
|
var/ipfire/network-functions.pl
|
||||||
|
|||||||
@@ -118,10 +118,9 @@ if ($settings{'ACTION'} eq $Lang::tr{'toggle enable disable'}) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($settings{'ACTION'} eq $Lang::tr{'add'}) {
|
if ($settings{'ACTION'} eq $Lang::tr{'add'}) {
|
||||||
|
|
||||||
# Validate inputs
|
# Validate inputs
|
||||||
if (!&General::validipandmask($settings{'IP'}))){
|
if (!&General::validipandmask($settings{'IP'})){
|
||||||
$errormessage = $Lang::tr{'invalid ip'}." / ".$Lang::tr{'invalid netmask'};
|
$errormessage = $Lang::tr{'invalid ip'}." / ".$Lang::tr{'invalid netmask'};
|
||||||
}else{
|
}else{
|
||||||
#set networkip if not already correctly defined
|
#set networkip if not already correctly defined
|
||||||
my($ip,$cidr) = split(/\//,$settings{'IP'});
|
my($ip,$cidr) = split(/\//,$settings{'IP'});
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
###############################################################################
|
###############################################################################
|
||||||
# #
|
# #
|
||||||
# IPFire.org - A linux based firewall #
|
# IPFire.org - A linux based firewall #
|
||||||
# Copyright (C) 2010 IPFire Team <info@ipfire.org #
|
# Copyright (C) 2007-2015 IPFire Team <info@ipfire.org> #
|
||||||
# #
|
# #
|
||||||
# This program is free software: you can redistribute it and/or modify #
|
# This program is free software: you can redistribute it and/or modify #
|
||||||
# it under the terms of the GNU General Public License as published by #
|
# it under the terms of the GNU General Public License as published by #
|
||||||
@@ -33,7 +33,7 @@ DIR_APP = $(DIR_SRC)/$(THISAPP)
|
|||||||
TARGET = $(DIR_INFO)/$(THISAPP)
|
TARGET = $(DIR_INFO)/$(THISAPP)
|
||||||
SUP_ARCH = x86_64 i586
|
SUP_ARCH = x86_64 i586
|
||||||
PROG = cpufrequtils
|
PROG = cpufrequtils
|
||||||
PAK_VER = 6
|
PAK_VER = 7
|
||||||
|
|
||||||
DEPS = ""
|
DEPS = ""
|
||||||
|
|
||||||
|
|||||||
@@ -87,5 +87,8 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
|||||||
|
|
||||||
sed -i -e "s|-ge 576|-gt 576|g" $(CONFIG_ROOT)/dhcpc/dhcpcd-hooks/10-mtu
|
sed -i -e "s|-ge 576|-gt 576|g" $(CONFIG_ROOT)/dhcpc/dhcpcd-hooks/10-mtu
|
||||||
|
|
||||||
|
install -m 644 $(DIR_SRC)/config/dhcpc/dhcpcd.conf $(CONFIG_ROOT)/dhcpc/
|
||||||
|
chown root:root $(CONFIG_ROOT)/dhcpc/dhcpcd.conf
|
||||||
|
|
||||||
@rm -rf $(DIR_APP)
|
@rm -rf $(DIR_APP)
|
||||||
@$(POSTBUILD)
|
@$(POSTBUILD)
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ DIR_APP = $(DIR_SRC)/$(THISAPP)
|
|||||||
CFLAGS =
|
CFLAGS =
|
||||||
CXXFLAGS =
|
CXXFLAGS =
|
||||||
|
|
||||||
PAK_VER = 63
|
PAK_VER = 64
|
||||||
DEPS = ""
|
DEPS = ""
|
||||||
|
|
||||||
KERNEL_ARCH = $(MACHINE)
|
KERNEL_ARCH = $(MACHINE)
|
||||||
|
|||||||
@@ -36,23 +36,35 @@ case "${1}" in
|
|||||||
modprobe cpufreq_powersave
|
modprobe cpufreq_powersave
|
||||||
modprobe cpufreq_userspace
|
modprobe cpufreq_userspace
|
||||||
|
|
||||||
CPUCOUNT=`ls /sys/devices/system/cpu/cpu*/cpufreq/affected_cpus 2> /dev/null | wc -l `;
|
driver=`cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver 2>/dev/null`
|
||||||
let CPUCOUNT-=1
|
|
||||||
# Set the governor to ondemand to test if it works
|
|
||||||
cpufreq-set -g ondemand
|
|
||||||
if [ ${?} = 0 ]; then
|
|
||||||
# activate cpufreq collectd module
|
|
||||||
sed -i -e "s|^#LoadPlugin cpufreq|LoadPlugin cpufreq|g" /etc/collectd.conf
|
|
||||||
|
|
||||||
# Set the governor to ondemand for all cpus
|
case "$driver" in
|
||||||
for i in `seq 0 $CPUCOUNT`;
|
intel_pstate)
|
||||||
do
|
# pstate use internal gov so skip this setting
|
||||||
cpufreq-set -c $i -g ondemand
|
# activate cpufreq collectd module
|
||||||
done
|
sed -i -e "s|^#LoadPlugin cpufreq|LoadPlugin cpufreq|g" /etc/collectd.conf
|
||||||
echo_ok;
|
echo_ok;
|
||||||
else
|
;;
|
||||||
echo_failure;
|
*)
|
||||||
fi
|
CPUCOUNT=`ls /sys/devices/system/cpu/cpu*/cpufreq/affected_cpus 2> /dev/null | wc -l `;
|
||||||
|
let CPUCOUNT-=1
|
||||||
|
# Set the governor to ondemand to test if it works
|
||||||
|
cpufreq-set -g ondemand
|
||||||
|
if [ ${?} = 0 ]; then
|
||||||
|
# activate cpufreq collectd module
|
||||||
|
sed -i -e "s|^#LoadPlugin cpufreq|LoadPlugin cpufreq|g" /etc/collectd.conf
|
||||||
|
|
||||||
|
# Set the governor to ondemand for all cpus
|
||||||
|
for i in `seq 0 $CPUCOUNT`;
|
||||||
|
do
|
||||||
|
cpufreq-set -c $i -g ondemand
|
||||||
|
done
|
||||||
|
echo_ok;
|
||||||
|
else
|
||||||
|
echo_failure;
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
exit 0;
|
exit 0;
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
|||||||
Reference in New Issue
Block a user