I can't get it to work,
I have to create this script:
#!/bin/ash /etc/rc.common
START=109
STOP=151
start() {
echo "start swap"
swapon /dev/sda2
}
stop(){
echo "stop"
}
My steps as logged in as Root:
Step 1:
root@OpenWrt:~# vi /etc/init.d/swapon
Step 2:
Enter vi mode
Write te script as above
Step 3:
exit vi editing mode
Step 4:
save the script by typing :w
Unfortunately I get the response > 'Error writing.. No such file or directory
So I just created the script, but can't save it.
How come, please help me!