I'm trying to setup a small partition on my drive as a swap partition. I formated the partition with MiniTool Partition Wizard and created a script with the following:
#!/bin/sh
swapon /dev/sda1
The file is placed in /jffs/scripts and named init-start. I made the file executable with the following:
touch /tmp/mnt/sda1/init-start
chmod a+x init-start
The script works fine but i can't get it to mount the partition on reboot. If the router is rebooted, i'd have to manually run the script. Can anyone advise as to how i can get run it on startup.
#!/bin/sh
swapon /dev/sda1
The file is placed in /jffs/scripts and named init-start. I made the file executable with the following:
touch /tmp/mnt/sda1/init-start
chmod a+x init-start
The script works fine but i can't get it to mount the partition on reboot. If the router is rebooted, i'd have to manually run the script. Can anyone advise as to how i can get run it on startup.