Last active
July 21, 2025 10:23
-
-
Save amercier/e64ee30eb3f96fcc42e3 to your computer and use it in GitHub Desktop.
Revisions
-
amercier renamed this gist
Dec 12, 2015 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
amercier revised this gist
Dec 12, 2015 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -11,4 +11,6 @@ Go to *Control Panel* / *Task Scheduler* and add the content of these scripts as Codes have been taken from [this article](https://smallhacks.wordpress.com/2012/04/17/working-with-synology-hardware-devsynobios-and-devttys1/). - `turn-leds-off.sh`: turns leds off - `turn-leds-on.sh`: turn leds back on Ex (this is how I use it): turn leds daily at 10PM, turn them back on at 6AM. -
amercier revised this gist
Dec 12, 2015 . 2 changed files with 4 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,5 @@ Synology scheduled tasks ======================== Usage ----- This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -2,6 +2,6 @@ printf \\x34 > /dev/ttyS1 # UART2_CMD_LED_POWER_ON printf \\x38 > /dev/ttyS1 # UART2_CMD_LED_HD_GS printf \\x40 > /dev/ttyS1 # UART2_CMD_LED_USB_ON printf \\x4A > /dev/ttyS1 # UART2_CMD_LED_10G_LAN_ON printf \\x51 > /dev/ttyS1 # UART2_CMD_LED_MIRROR_GS -
amercier revised this gist
Dec 12, 2015 . 3 changed files with 27 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ # Synology scheduled tasks # ======================== Usage ----- Go to *Control Panel* / *Task Scheduler* and add the content of these scripts as `root` scripts. ### Leds Codes have been taken from [this article](https://smallhacks.wordpress.com/2012/04/17/working-with-synology-hardware-devsynobios-and-devttys1/). - `turn-leds-off.sh`: turns leds off - `turn-leds-on.sh`: turn leds back on This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ #!/bin/sh printf \\x36 > /dev/ttyS1 # UART2_CMD_LED_POWER_OFF printf \\x37 > /dev/ttyS1 # UART2_CMD_LED_HD_OFF printf \\x42 > /dev/ttyS1 # UART2_CMD_LED_USB_OFF printf \\x4B > /dev/ttyS1 # UART2_CMD_LED_10G_LAN_OFF printf \\x50 > /dev/ttyS1 # UART2_CMD_LED_MIRROR_OFF This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ #!/bin/sh printf \\x34 > /dev/ttyS1 # UART2_CMD_LED_POWER_ON printf \\x38 > /dev/ttyS1 # UART2_CMD_LED_HD_GS printf \\x42 > /dev/ttyS1 # UART2_CMD_LED_USB_ON printf \\x4A > /dev/ttyS1 # UART2_CMD_LED_10G_LAN_ON printf \\x50 > /dev/ttyS1 # UART2_CMD_LED_MIRROR_GS -
amercier renamed this gist
Dec 12, 2015 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,4 @@ #!/bin/sh printf \\x36 > /dev/ttyS1 printf \\x37 > /dev/ttyS1 -
amercier revised this gist
Jul 9, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ #!/bin/sh # /usr/local/etc/rc.d/leds-off.sh printf \\x36 > /dev/ttyS1 printf \\x37 > /dev/ttyS1 -
amercier created this gist
Jul 9, 2015 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ #!/bin/sh #/usr/local/etc/rc.d/leds-off.sh printf \\x36 > /dev/ttyS1 printf \\x37 > /dev/ttyS1 printf \\x42 > /dev/ttyS1 printf \\x4B > /dev/ttyS1 printf \\x50 > /dev/ttyS1