custom.css not sticking

Discussion in 'Tomato Firmware' started by xtacydima, Sep 2, 2010.

  1. xtacydima

    xtacydima LI Guru Member

    Maybe someone can help me out with this. I have an Asus rt-n16 and I am on Tomato and am using the USB Red color scheme. My friend got an Asus rt-n12 and he really likes the color scheme which is not present in that Tomato build for the n12. I logged in with SCP and was able to copy out the two png graphic files as well as the css file from my n16 and renamed it to custom.css and threw it into n12 in the var/www folder as custom.css which is where these files usually go. I executed nvram commit through scp command option and it worked. However, it only works up until a reboot or shutdown/restart of the router. Then the color scheme gets lost, and the files I transfered over had disappeared from the var/www path. Am I doing something wrong? I also tried to copy them into the native folder wwwext or something like that but I got a permisson denied (no write rights).

    Any help would be appreciated.
  2. xtacydima

    xtacydima LI Guru Member

    anyone have any idea?
  3. i1135t

    i1135t Network Guru Member

    Anything you put in there will get erased after a reboot since it's living in RAM. You will need to store the file(s) in JFFS or CIFS, non-volatile memory, and configure it to copy from those locations to the www path through init script, so it will be copied over on every reboot.
  4. SgtPepperKSU

    SgtPepperKSU Network Guru Member

    The filesystem is rebuilt on every boot. Set up JFFS via the web GUI, then place your css files in /jffs and put a command in your init script that symlinks /var/wwwext to /jffs.
  5. kadrex

    kadrex LI Guru Member

    Yeah, I do the same thing with the TomatoUSB 0.3 theme that I got from

    I created a folder on my computer and shared it as a CIFS. Then I went to Administration>Scripts>Init and added the following code.

    mkdir /var/wwwext
    cp /cifs1/custom.css /var/wwwext/custom.css
    cp /cifs1/bg.png /var/wwwext/bg.png
    cp /cifs1/tomato.png /var/wwwext/tomato.png
  6. xtacydima

    xtacydima LI Guru Member

    thx for all the help, I will give it a try
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice