#!/bin/sh # copy files from specific sd card directory /WIFISD/ # to servers root directory cp -Rf /mnt/sd/.wifisd/chdk/* /www/ # make scipts executable chmod a+x /www/cgi-bin/* # add links to /www/frame1.html (insert before ) # Schema: • Title busybox-extra sed -i.orig1 -e 's/<\/tbody>/\• CHDK<\/a><\/td><\/tr>\n<\/tbody>/' /www/frame1.html busybox-extra sed -i.orig2 -e 's/<\/tbody>/\• WebDev<\/a><\/td><\/tr>\n<\/tbody>/' /www/frame1.html