Created
May 10, 2018 19:13
-
-
Save rbgarga/db009aa780017e7c721ab8e15e06f564 to your computer and use it in GitHub Desktop.
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
diff --git a/src/etc/inc/system.inc b/src/etc/inc/system.inc | |
index 387fea99da..69cb9c9f8e 100644 | |
--- a/src/etc/inc/system.inc | |
+++ b/src/etc/inc/system.inc | |
@@ -2281,19 +2281,22 @@ function system_check_reset_button() { | |
$specplatform = system_identify_specific_platform(); | |
switch ($specplatform['name']) { | |
+ case 'SG-2220': | |
+ $binprefix = "RCC-DFF"; | |
+ break; | |
case 'alix': | |
case 'wrap': | |
case 'FW7541': | |
case 'APU': | |
case 'RCC-VE': | |
case 'RCC': | |
- case 'SG-2220': | |
+ $binprefix = $specplatform['name']; | |
break; | |
default: | |
return 0; | |
} | |
- $retval = mwexec("/usr/local/sbin/" . $specplatform['name'] . "resetbtn"); | |
+ $retval = mwexec("/usr/local/sbin/" . $binprefix . "resetbtn"); | |
if ($retval == 99) { | |
/* user has pressed reset button for 2 seconds - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment