Advertisement
abrodkin

flash.sh

Aug 9th, 2011
463
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.46 KB | None | 0 0
  1. #!/bin/sh
  2. #
  3. # DESCRIPTION
  4. # "flash" script for Asus wl500g router.
  5. #
  6. # Saves filesystem state into flash memory
  7. #
  8. #
  9. # INSTRUCTIONS
  10. # Put script in "/usr/local/sbin"
  11. # Save flashfs:
  12. #     flashfs save && flashfs commit && flashfs enable
  13. # Reboot device
  14. #     reboot
  15.  
  16. # Log to stderr as well as the system log
  17. LOGGER_OPTIONS=-s
  18.  
  19. logger $LOGGER_OPTIONS "Saving filesystem changes into flash memory..."
  20. flashfs save && flashfs commit && flashfs enable
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement