Hello everyone,
I need assistance with two specific issues regarding my LinkStation LS-WX4.0TL/R1 - EU, running firmware version 1.75. I'm hoping someone here can help me or guide me on where to find answers.
Question 1
Locating the Wake-on-LAN (WOL) Wait Time Configuration
I'm trying to find the file and path where the default wait time is configured for how long the device waits for a Wake-on-LAN (WOL) packet before shutting down. As far as I know, the default setting is around 3 minutes.
I've already enabled SSH access and performed a system-wide search using the command grep -i "wol" /etc/* -r in Putty, but I couldn't find any entry related to the WOL wait time.
Could you please tell me where this value is stored and how I might adjust it if needed?
Question 2
Configuring WOL and Sleep Timer: AUTO Mode vs. ON Mode
I want my LinkStation to remain "off" most of the time and only be activated via WOL when needed. However, the NAS also needs to perform a recurring task: It should automatically wake up, download a backup from my web server (stay online for 2 hours), and then return to sleep mode.
According to Buffalo, the device only supports either AUTO mode (WOL) or ON mode (with a sleep timer), but not both simultaneously.
Solutions to Question 2
Option A:
Keep the NAS in AUTO mode, so it waits for WOL packets.
At a specific time (Time X), it will wake up, stop waiting for WOL packets, execute the cron job to download data, wait until a specific time (Time Y), and then shut down, resuming the WOL wait.
In this scenario, the NAS is either "off" and waiting for WOL packets or "on" and performing the cron job without needing WOL.
Option B:
Keep the NAS in ON mode with a sleep timer that keeps it "off" for 90% of the day, except for 2 hours during the night when it wakes up to perform the cron job.
Modify the firmware so that the NAS powers on when it receives a WOL packet (not required to stay on permanently) and remains online until it receives a shutdown command.
Here, the switch is set to "on" all the time, but the sleep timer manages its downtime. It will still wake up with a WOL packet when needed and go back to sleep on command or when the timer dictates.
My Questions 1 and 2:
Where is the WOL configuration located?
How can I achieve the configuration described in Question 2?
Thank you in advance for your help!
I was hoping someone familiar with the firmware could look into it and tell me where I need to make changes for either Option A or Option B to work.
This might be helpful:
GPL/LGPL Resource - BUFFALO INC.
https://opensource.buffalo.jp/ls-x-165.html
Password for Firmware Files:
https://buffalonas.miraheze.org/wiki/Extract_Boot_Files_from_Stock_Firmware
Extract Boot Files from Stock Firmware - Buffalo NAS Wiki
Firmware: LS-series-fw175_fwwin.zip
https://www.topocad-tech.fr/telechargements/
Browser ID: smf
(is_webkit)
Templates: 1:
Printpage (default).
Sub templates: 4:
init,
print_above,
main,
print_below.
Language files: 1:
index+Modifications.english (default).
Style sheets: 0:
.
Hooks called: 50 (
showintegrate_autoload, integrate_pre_load, integrate_load_session, integrate_verify_user, integrate_pre_load_theme, integrate_user_info, integrate_load_board, integrate_board_info, integrate_pre_load_theme, integrate_allowed_to_general, integrate_simple_actions, integrate_allowed_to_general, integrate_load_theme, integrate_pre_log_stats, integrate_actions, integrate_word_censor, integrate_word_censor, integrate_pre_parsebbc, integrate_bbc_codes, integrate_bbc_print, integrate_post_parsebbc, integrate_word_censor, integrate_word_censor, integrate_pre_parsebbc, integrate_bbc_print, integrate_post_parsebbc, integrate_pre_parsebbc, integrate_smileys, integrate_smileys, integrate_post_parsebbc, integrate_pre_parsebbc, integrate_smileys, integrate_smileys, integrate_post_parsebbc, integrate_allowed_to_general, integrate_allowed_to_general, integrate_allowed_to_general, integrate_allowed_to_general, integrate_allowed_to_general, integrate_allowed_to_general, integrate_allowed_to_general, integrate_allowed_to_general, integrate_allowed_to_general, integrate_allowed_to_general, integrate_menu_buttons, integrate_current_action, integrate_theme_context, integrate_allowed_to_general, integrate_allowed_to_general, integrate_allowed_to_general)
Files included: 27 - 1055KB. (
show./index.php, ./Settings.php, (Cache)/db_last_error.php, (Sources)/QueryString.php, (Sources)/Subs.php, (Sources)/Subs-Auth.php, (Sources)/Errors.php, (Sources)/Load.php, (Sources)/Security.php, (Sources)/Subs-Compat.php, (Sources)/Subs-Db-mysql.php, (Sources)/Cache/CacheApi.php, (Sources)/Cache/CacheApiInterface.php, (Sources)/StopForumSpam.php, (Sources)/Subs-Charset.php, (Sources)/Unicode/Metadata.php, (Sources)/Unicode/QuickCheck.php, (Sources)/Session.php, (Sources)/Logging.php, (Sources)/Class-BrowserDetect.php, (Sources)/Unicode/RegularExpressions.php, (Sources)/Unicode/CaseUpper.php, (Sources)/Unicode/CaseTitle.php, (Current Theme)/languages/index.english.php, (Current Theme)/languages/Modifications.english.php, (Sources)/Printpage.php, (Current Theme)/Printpage.template.php)
Memory used: 739KB.
Tokens:
post-login.
Queries used: 10.
[Show Queries]