diff --git a/onebuttoninstaller/ext/ext/onebuttoninstaller/fail2ban.postinit b/onebuttoninstaller/ext/ext/onebuttoninstaller/fail2ban.postinit index 3facf76..2342955 100644 --- a/onebuttoninstaller/ext/ext/onebuttoninstaller/fail2ban.postinit +++ b/onebuttoninstaller/ext/ext/onebuttoninstaller/fail2ban.postinit @@ -1,12 +1,71 @@ = 11.0) { // new rc format + // postinit command + $rc_param = []; + $rc_param['uuid'] = uuid(); + $rc_param['name'] = "Fail2Ban Extension"; + $rc_param['value'] = "{$cmd}"; + $rc_param['comment'] = "Start Fail2Ban"; + $rc_param['typeid'] = '2'; + $rc_param['enable'] = true; + $config['rc']['param'][] = $rc_param; +} +else { + $config['rc']['postinit']['cmd'][] = "{$cmd}"; +} +write_config(); ?> diff --git a/onebuttoninstaller/ext/ext/onebuttoninstaller/mcommander.postinit b/onebuttoninstaller/ext/ext/onebuttoninstaller/mcommander.postinit index b028938..004d608 100644 --- a/onebuttoninstaller/ext/ext/onebuttoninstaller/mcommander.postinit +++ b/onebuttoninstaller/ext/ext/onebuttoninstaller/mcommander.postinit @@ -1,12 +1,72 @@ = 11.0) { // new rc format + // postinit command + $rc_param = []; + $rc_param['uuid'] = uuid(); + $rc_param['name'] = "MidnightCommander Extension"; + $rc_param['value'] = "{$cmd}"; + $rc_param['comment'] = "Start MidnightCommander"; + $rc_param['typeid'] = '2'; + $rc_param['enable'] = true; + $config['rc']['param'][] = $rc_param; +} +else { + $config['rc']['postinit']['cmd'][] = "{$cmd}"; +} +write_config(); ?> diff --git a/onebuttoninstaller/ext/ext/onebuttoninstaller/mcommander.sh b/onebuttoninstaller/ext/ext/onebuttoninstaller/mcommander.sh index bbda062..f5fac9d 100644 --- a/onebuttoninstaller/ext/ext/onebuttoninstaller/mcommander.sh +++ b/onebuttoninstaller/ext/ext/onebuttoninstaller/mcommander.sh @@ -11,6 +11,8 @@ # 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 +# date: 2016-11-21 ; create symlinks for v11.x compatibility - author: crest +# # purpose: Install Midnight Commander on NAS4Free (embedded version). # Note: Check the end of the page. # @@ -82,6 +84,9 @@ cd /usr/local/lib [ -e libpcre.so.3 ] || ln -s /usr/local/lib/libpcre.so.1 libpcre.so.3 [ -e libintl.so.9 ] || ln -s /usr/local/lib/libintl.so.8 libintl.so.9 [ -e libiconv.so.3 ] || ln -s /usr/local/lib/libiconv.so.2 libiconv.so.3 +# Symlinks for v11.x +if [ -e /usr/lib/libssl.so.8 ]; then ln -sf /usr/lib/libssl.so.8 libssl.so.6; fi +if [ -e /lib/libcrypto.so.8 ]; then ln -sf /lib/libcrypto.so.8 libcrypto.so.6; fi cd - # Aliases diff --git a/onebuttoninstaller/ext/ext/onebuttoninstaller/spinner.inc b/onebuttoninstaller/ext/ext/onebuttoninstaller/spinner.inc index 6c0fd8b..7075c59 100644 --- a/onebuttoninstaller/ext/ext/onebuttoninstaller/spinner.inc +++ b/onebuttoninstaller/ext/ext/onebuttoninstaller/spinner.inc @@ -1,7 +1,7 @@