[crisos] Running script at boottime |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/crisos Archives
]
- To: crisos@xxxxxxxxxxxxxxxxxxx
- Subject: [crisos] Running script at boottime
- From: Claudio <claudyus84@xxxxxxxxx>
- Date: Tue, 7 Apr 2009 10:33:00 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=LX7rw2HAmCZtoeUPJEr5H/mkcVKJNmrtFVTyt/ZXP84=; b=LoNavXnZ+It9cCZ9uqUI6+jd1j8RbBewZfaokAJQXM8UZeNc36bOnH7hFaO8gUn218 0tG+tGo9RQt6edZqzUe3VZw3yMP0MuMHgOsqeWNYNq7q/NPbk1LYWojA8pbY3B9M/8+2 7Bt6nCswH2VU/yA/vXHL1L9pHOVSJQ1L5Zl7c=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=Oy0UCs8YuRB9GvscQliYRjs1mLwc1nbbyjXv81dG4uKn/AQcUryjBxJ+b68xSt9lTE GucqQNMcp20S5O7Zi0XGZj+FJ8MANSqmGP1pFNmnt0iXzMBY6DTCc59NwkbuxKEWNEcj KHwofwQfGtMsAKcThrFPUdwLbuy7sdNvB4LMk=
Thank you Holger for your improvement on boottime documentation.
I also like to invite you to see
http://www.crisos.org/dokuwiki/doku.php?id=documentation:faq&rev=1239087274&do=diff
for the use of start/stop function inside boot scripts.
Best Regards
Claudio
---------- Forwarded message ----------
From: <claudyus@xxxxxxxxxxxxx>
Date: 2009/4/7
Subject: [CrisOs] page changed: documentation:faq
To: claudyus84@xxxxxxxxx
A page in your DokuWiki was added or changed. Here are the details:
Date : 2009/04/07 06:43
Browser : Mozilla/5.0 (OS/2; U; Warp 4.5; de-AT; rv:1.7.3) Gecko/20040918
IP-Address :
Hostname :
Old Revision: http://www.crisos.org/dokuwiki/doku.php?id=documentation:faq&rev=1231170697
New Revision: http://www.crisos.org/dokuwiki/doku.php?id=documentation:faq
Edit Summary: Deteiled description for enabling startup script included
User :
@@ -37,8 +37,25 @@
==== Running command/script at boottime ====
You can insert your command/script inside
**/etc/init.d/custom-user-startup**, remember to end a background
command with &.
+ In detail you need to do following steps:
+
+ - Goto subdirectory **/etc/init.d** and create script file
**custom-user-startup** (e.g using **vi**)
+ - Include your commands into the script, here is an example:
+ <code>
+ #!/bin/sh /etc/rc.common
+ START=50
+ #
+ /usr/sbin/ser2net &
+ </code>
+ - Make script executable by **chmod 755**
+ - "Register" the script file by running following command:
**/etc/init.d/custom-user-startup enable**
+ - After that in **/etc/rc.d**, there must be a file which
references to custom-user-startup e.g.
+ <code>
+ lrwxrwxrwx 1 root root 29 Jan 1 00:03
S50custom-user-startup -> ../init.d/custom-user-startup
+ </code>
+ - After reboot check by **ps**, the startup script was executed
(for example the process //ser2net//'' must be shown)
===== DarwinFox =====
Known issues for DarwinFox release.
==== Opkg don't work ====
--
This mail was generated by DokuWiki at
http://www.crisos.org/dokuwiki/
---
CrisOs mailing list
Official multi-language http://www.crisos.org/ mailing list
For unsubscribe send empty mail to: crisos-request@xxxxxxxxxxxxxxxxxxx with subject unsubscribe.