-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
N: configuration - enable/disable beta releases in extensions list N: check hardware platform to use midnightcommander on i386 too F: disabling extension not possible, leads to an error message
- Loading branch information
Showing
18 changed files
with
85 additions
and
55 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
onebuttoninstaller/ext/ext/onebuttoninstaller/fail2ban.postinit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
$command = "fail2ban_start.sh"; | ||
$cmd = dirname(__FILE__)."/".$command; | ||
require_once("config.inc"); | ||
require_once("functions.inc"); | ||
$i =0; | ||
if ( is_array($config['rc']['postinit'] ) && is_array( $config['rc']['postinit']['cmd'] ) ) { | ||
for ($i; $i < count($config['rc']['postinit']['cmd']);) { | ||
if (preg_match("/$command/", $config['rc']['postinit']['cmd'][$i])) break; ++$i; } | ||
} | ||
$config['rc']['postinit']['cmd'][$i] = $config['cmd']."$cmd"; | ||
write_config(); | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,12 +10,14 @@ | |
# date: 2013-08-23 ; Fetch files from packages-9.2-release ; add libssh2 | ||
# date: 2014-12-18 ; Update for v9.3; Clean up | ||
# date: 2015-02-21 ; Update mc package to mc-4.8.11.tbz | ||
# date: 2016-08-04 ; check hardware platform to use it on i386 too - author: crest <[email protected]> | ||
# purpose: Install Midnight Commander on NAS4Free (embedded version). | ||
# Note: Check the end of the page. | ||
# | ||
#----------------------- Set variables ------------------------------------------------------------------ | ||
DIR=`dirname $0`; | ||
URL="ftp://ftp-archive.freebsd.org/pub/FreeBSD-Archive/ports/amd64/packages-9.2-release/Latest" | ||
HWPLATFORM=`uname -m`; | ||
URL="ftp://ftp-archive.freebsd.org/pub/FreeBSD-Archive/ports/${HWPLATFORM}/packages-9.2-release/Latest" | ||
MCLIGHTFILE="mc.tbz" | ||
LIBSLANGFILE="libslang2.tbz" | ||
LIBSSH2FILE="libssh2.tbz" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.