Note : Please take a backup of the rcS file as its dangerous if this file is corrupted as PogoPlug will not mount the device as expected.
echo “sleep 15” >> /etc/init.d/rcS
Content of starta script :
mount -o remount,rw /
mount /tmp/.cemnt/mnt_sda5 /opt
mount -o exec,remount /tmp/.cemnt/mnt_sda5 /opt
wget -O- http://gyanmoti.in/notify
mount -o remount,ro /
The above script remounts the root drive with read write mode. I have installed the optware package in the sda5 partition and hence I am mounting that with exec mode. Once everything goes well, Samba and FTP has started .
Line 7 : Is to send a call to one of my PHP script that the mount is successful by simply pinging that Url.
And, Finally we need to remount the root drive to Read Only mode to avoid any accidental modifications.
Now, I don’t; need to start the server manually and it happens smoothly.
Here the Folders accessed from Network share
This is a simple script to autostart assuming your optware package always available in the tmp/.cemnt/mnt_sda5
Please use a different path based on where your device mounted.