View Single Post
KotCzarny's Avatar
Posts: 290 | Thanked: 738 times | Joined on Mar 2008 @ .pl
#284
quick instruction how to make it run on every boot:

new file: /etc/event.d/rc-local
Code:
start on MOUNTS_OK

console output
exec /etc/rc.local
new file: /etc/rc.local
Code:
#!/bin/sh

echo "[/etc/rc.local]"

/sbin/swapoff -a
/sbin/modprobe ramzswap num_devices=4 disksize_kb=32768
/sbin/mkswap /dev/ramzswap0
/sbin/swapon /dev/ramzswap0
/sbin/swapon -a
as a bonus you can put even more things to run in /etc/rc.local. cheers!
__________________
oscp - media player with network remote and almost no dependencies (pc/lin/win/maemo(n8x0/n900), x86/x64/armel/armhf) - http://talk.maemo.org/showthread.php?t=94590 - if you like it, tell others.
contact with me: #osc or #maemo on freenode/ircnet or /query KotCzarny
 

The Following 3 Users Say Thank You to KotCzarny For This Useful Post: