What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

RT-AC56U Swap Partition

dekozi

New Around Here
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.
 
If you search the forum someone has already posted script for auto-mounting swap partition. I use that script on RT-N66U and it works perfectly.


Sent from my iPhone using Tapatalk
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!

Staff online

Back
Top