Active Topics

 


Reply
Thread Tools
Posts: 28 | Thanked: 4 times | Joined on Mar 2011 @ Lebanon,Beirut
#1
hello can anyone tell me how to make a start up script?
my nokia n900 internal memory card is damaged (that is what i have been said) so every time i reboot my n900 i have to go to x terminal and run the swapon on command as root....
can anyone tell me how to make it so that every time i reboot my phone it automatically makes the swap on my sd card?
this is the script i use
swapon /dev/mmcblk1p2

thanks
 
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#2
May be you find this thread to be helpful want http://talk.maemo.org/showthread.php?t=69081 or this http://talk.maemo.org/showthread.php?t=69648
Please feel free to ask for more here.
 
Posts: 992 | Thanked: 995 times | Joined on Dec 2009 @ California
#3
Put in file /etc/event.d/relocate-swap

--------------------------------------------
Code:
description "blah-blah-blah.."
author "Your Name here"

console output

start on started rcS-late

script
        swapoff /dev/mmcblk0p3
        swapon /dev/mmcblk1p2
end script
-------------------------------------


... and reboot N900
 
Posts: 28 | Thanked: 4 times | Joined on Mar 2011 @ Lebanon,Beirut
#4
Originally Posted by egoshin View Post
Put in file /etc/event.d/relocate-swap

--------------------------------------------
Code:
description "blah-blah-blah.."
author "Your Name here"

console output

start on started rcS-late

script
        swapoff /dev/mmcblk0p3
        swapon /dev/mmcblk1p2
end script
-------------------------------------


... and reboot N900
thanks but how exactly can i put it in /etc/event.d/ ?
 
Posts: 219 | Thanked: 94 times | Joined on Nov 2009 @ Helsinki, Finland
#5
Maemo uses upstart, so that's why the syntax is required in the script.

http://upstart.ubuntu.com/
__________________
Ham > Turkey
 

The Following User Says Thank You to naabi For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 23:35.