Results 1 to 4 of 4

Thread: Edit /init scripts

  1. #1

    Question Edit /init scripts

    How can I edit my /init scripts? F.e. /init/httpserver.

  2. #2
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,356
    Copy /init/functions and /init/httpserver to /usr/local/init/, i.e.
    Code:
    cp /init/functions /usr/local/init/functions
    cp /init/httpserver /usr/local/init/httpserver
    Edit /usr/local/init/functions and replace call to /init/httpserver to /usr/local/init/httpserver.
    Edit /usr/local/init/httpserver in the way you like also it's a good idea to remove "echo ... > watchdog.conf" from this file.

    commit changes like this
    Code:
    flashfs save
    flashfs commit
    flashfs enable
    If you was careful enough, then on the next boot you will got changed things, otherwise wl500g will continously rebooting and you will need to follow instructions posted with firmware.

  3. #3
    and what can i do, when i like to change /init/firewall?
    do i need to change every file whitch calls /init/firewall, so that it runs /usr/local/init/firewall ???

  4. #4
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,356
    For firewall stuff it's better just to write /usr/local/init/post-firewall script. /init/firewall calls it at the end.

Similar Threads

  1. Post Your Useful Scripts
    By tomilius in forum WL-500g Custom Development
    Replies: 2
    Last Post: 05-06-2005, 10:01
  2. bash scripts
    By AmoRico in forum WL-500g Q&A
    Replies: 2
    Last Post: 31-01-2005, 19:45
  3. Edit a file
    By Flappie in forum WL-500g Q&A
    Replies: 1
    Last Post: 05-01-2005, 17:14
  4. How to edit Firmware ?
    By ardidi in forum WL-HDD Q&A
    Replies: 1
    Last Post: 19-10-2004, 18:50
  5. 1.7.5.6-2 /init/rc.dnsmasq
    By mdounin in forum WL-500g Custom Development
    Replies: 1
    Last Post: 02-05-2004, 19:54

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •