Skip to content

Instantly share code, notes, and snippets.

@rbgarga
Created May 10, 2018 19:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rbgarga/db009aa780017e7c721ab8e15e06f564 to your computer and use it in GitHub Desktop.
Save rbgarga/db009aa780017e7c721ab8e15e06f564 to your computer and use it in GitHub Desktop.
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