Changeset 9177
- Timestamp:
- 03/01/08 13:39:34 (5 years ago)
- Location:
- src/router/rc
- Files:
-
- 3 edited
-
radio_timer.c (modified) (1 diff)
-
rc.c (modified) (1 diff)
-
resetbutton.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/router/rc/radio_timer.c
r9168 r9177 101 101 eval ("wl", "-i", get_wl_instance_name(0), "radio", "on"); 102 102 start_service ("nas"); 103 start_service ("guest_nas"); 103 104 #else 104 105 eval ("wl", "radio", "on"); -
src/router/rc/rc.c
r9176 r9177 461 461 && nvram_match ("radiooff_boot_off", "1")) 462 462 { 463 sleep (2); 463 464 stop_service ("nas"); 464 465 eval ("wl", "-i", get_wl_instance_name (0), "radio", "off"); -
src/router/rc/resetbutton.c
r9168 r9177 464 464 if (ses_mode == 1) 465 465 { 466 led_control (LED_SES, LED_FLASH); //when pressed, blink white SES (AOSS) led 466 467 #ifdef HAVE_RADIOOFF 467 468 if (nvram_match ("radiooff_button", "1")) 468 469 { 469 stop_service ("nas"); 470 #ifndef HAVE_BUFFALO 471 syslog (LOG_DEBUG, 472 "SES / AOSS / EZ-setup button: turning radio on\n"); 473 #else 474 syslog (LOG_DEBUG, "AOSS button: turning radio on\n"); 475 #endif 470 476 eval ("wl", "-i", get_wl_instance_name(0), "radio", "on"); 471 477 start_service ("nas"); 472 #ifndef HAVE_BUFFALO 473 syslog (LOG_DEBUG, 474 "SES /AOSS /EZ-setup button: turning radio on\n"); 475 #else 476 syslog (LOG_DEBUG, "AOSS button: turning radio on\n"); 478 #ifdef HAVE_MSSID 479 start_service ("guest_nas"); 477 480 #endif 478 481 } 479 482 #endif 480 483 481 // led_control (LED_SES, LED_OFF); 482 // led_control (LED_SES2, LED_ON); //enable orange led 483 led_control (LED_SES, LED_FLASH); //when pressed, blink white SES (AOSS) led 484 485 // switch (brand) 486 // { 487 // case ROUTER_WRT54G: 488 // case ROUTER_WRTSL54GS: 489 // ses_mode = 2; 490 // break; 491 // default: 484 492 485 ses_mode = 0; 493 // }494 486 495 487 } 496 488 else if (ses_mode == 0) 497 489 { 490 led_control (LED_SES, LED_FLASH); //when pressed, blink SES (AOSS) led 498 491 #ifdef HAVE_RADIOOFF 499 492 if (nvram_match ("radiooff_button", "1")) 500 493 { 494 #ifndef HAVE_BUFFALO 495 syslog (LOG_DEBUG, 496 "SES / AOSS / EZ-setup button: turning radio off\n"); 497 #else 498 syslog (LOG_DEBUG, "AOSS button: turning radio off\n"); 499 #endif 501 500 stop_service ("nas"); 502 501 eval ("wl", "-i", get_wl_instance_name(0), "radio", "off"); 503 #ifndef HAVE_BUFFALO504 syslog (LOG_DEBUG,505 "SES /AOSS /EZ-setup button: turning radio off\n");506 #else507 syslog (LOG_DEBUG, "AOSS button: turning radio off\n");508 #endif509 502 } 510 503 #endif 511 // led_control (LED_SES, LED_ON); //enable white led512 // led_control (LED_SES2, LED_OFF);513 led_control (LED_SES, LED_FLASH); //when pressed, blink white SES (AOSS) led514 504 515 505 ses_mode = 1;
Note: See TracChangeset
for help on using the changeset viewer.
