lxx Posted May 26, 2015 Share Posted May 26, 2015 Captive portal (Evil portal 2) is up and running. Because of the limited internal space, I want to use the sd card to store the pictures for the background and the buttons.. Now i shows: $imagesdir/wifidog.png But I want the images to be loaded from the sd card /sd/html/$imagesdir/ the folder in /sd/html is just called images Quote Link to comment Share on other sites More sharing options...
newbi3 Posted May 27, 2015 Share Posted May 27, 2015 Captive portal (Evil portal 2) is up and running. Because of the limited internal space, I want to use the sd card to store the pictures for the background and the buttons.. Now i shows: $imagesdir/wifidog.png But I want the images to be loaded from the sd card /sd/html/$imagesdir/ the folder in /sd/html is just called images Totally possible! You can create a symbolic link to you images on to that folder so: ln -s /sd/myimage.jpg /etc/nodogsplash/htdocs/images/ I think there is also a way to change the value of $imagesdir in the nodogsplash configuration which you can access through the configuration tab or in /etc/nodogsplash/nodogsplash.conf Quote Link to comment Share on other sites More sharing options...
lxx Posted May 27, 2015 Author Share Posted May 27, 2015 @newbi3, Thank for the reply. Unfortunately nodogslash configuration file does not include the "image" part, so I can't change the &imagedir path :(. Where should I put the "ln -s /sd/myimage.jpg /etc/nodogsplash/htdocs/images/", so that I can still view the files from the sd. Tnx, your the best :) Quote Link to comment Share on other sites More sharing options...
newbi3 Posted May 27, 2015 Share Posted May 27, 2015 "ln" is a command that creates links. The "-s" switch says this is a symbolic link and not a hard link which is what we want in this case. "/sd/myimage.jpg" would be the image or folder containing images or whatever other file you are going to create a link for. "/etc/nodogsplash/htdocs/images/" is the path to create the link in. So the syntax is this: ln -s <source_file> <destination> You would run this from the command line Quote Link to comment Share on other sites More sharing options...
lxx Posted May 27, 2015 Author Share Posted May 27, 2015 Tnx, It works :), your the best :d I'll try (on my own ....lol) to figure out how to make this line automatic, so when I reset the MKV, it will be like the same as you explained. If it doesn't work I will let you know. I'm new to linux (terminal) , but with my friend google I hope to succeed. Quote Link to comment Share on other sites More sharing options...
lxx Posted May 28, 2015 Author Share Posted May 28, 2015 It works I made the following schript en placed it in /etc/init.d/ #!/bin/bash # This script will put symbol links from sd card to /etc/nodogsplash/htdocs folder ln -s /sd/ /etc/nodogsplash/htdocs/images/ I called the file imgfromsd and made the imgfromsd file executable. Don't know if this is the correct way, but it works ;). Quote Link to comment Share on other sites More sharing options...
sud0nick Posted May 29, 2015 Share Posted May 29, 2015 You don't need to recreate the symlink every time you want to use nodogsplash. Create it once and it's done. The only time you would need to recreate it is when you flash your firmware. Quote Link to comment Share on other sites More sharing options...
newbi3 Posted May 29, 2015 Share Posted May 29, 2015 Also I recommend against linking everything in /sd to that the images folder. You should make a folder in /sd and link only that folder. ln -s /sd/sd_images /etc/nodogsplash/htdocs/images Quote Link to comment Share on other sites More sharing options...
lxx Posted May 30, 2015 Author Share Posted May 30, 2015 I will do that :) tnx. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.