
Arcom Embedded Linux Technical Manual Configuring AEL
Making an application run automatically at boot
If you want an application to run automatically at boot, follow these steps:
1 Write a script that runs your application. For example, you may create a script
called ‘someapp’.
2 Put the script in the following folder:
/etc/init.d
3 Make the script executable by entering the following command (replacing
‘someapp’ with the name you’ve given your script):
# chmod +x /etc/init.d/someapp
4 Make a symbolic link in /etc/rcX.d that points to the script in /etc/init.d. For the
‘someapp’ example, you might therefore enter:
# ln -s /etc/init.d/someapp /etc/rcX.d/S99someapp
(Where X is the runlevel number.)
For example, at runlevel 3, you would enter:
# ln –s /etc/init.d/someapp /etc/rc3.d/S99someapp
Using 99 ensures that your application starts after all other services.
Network configuration
You can view the current Ethernet configuration by running ifconfig, and the current
default gateway with route.
IP address configuration
In the default install of AEL, the network device is configured to obtain an IP address
automatically via DHCP (Dynamic Host Configuration Protocol). If you are not running a
DHCP server on your network, or you want to force a static IP address, you can
reconfigure the device by editing the file /etc/network/interfaces. The format of this file is
described in the interfaces(5) man page.
Each interface is defined by a line starting with the iface keyword. The syntax is:
iface NAME FAMILY METHOD
© 2006 Arcom Issue G 17
Kommentare zu diesen Handbüchern