Try putting the commands in:
How do I get all three of these to run at boot time? I found this example script here, but I don't know how to create it or where to put it so that these commands run every time I restart my server. It's kind of a pain otherwise.
Thanks,Code:#!/bin/sh modprobe ath_pci (If running pre-r1408 Madwifi code, then also: wlanconfig ath0 create wlandev wifi0 wlanmode sta) iwconfig ath0 essid "My_WPA_Protected_AP_ESSID" ifconfig ath0 192.168.0.100 up wpa_supplicant -Bw -Dmadwifi -iath0 -c/etc/wpa_supplicant.conf
OK, thanks. What does the ! do in this case, though?
This is what my current rc.local file looks like:
Do I have to put "exit 0" before each command?Code:#!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing. exit 0 /usr/local/bin/noip2
You don't have to edit the current script. Just cut and paste your script just before exit statement. save it and test the results. An easy way, if that may work for you, is to ust ntsysv command on command line. It will help you configure services you may start automatically after your OS boots. I'll suggest you to try ntsysv command before you do any experiments with the script. This is a safer way.
I am surprised the packager didn't setup a service script for all of that. Fedora 6 and CentOS packagers did. Dunno about F7.
ntsysv is not on my server. Can I apt-get install that?
I don't see my distro listed (Ubuntu Server Feisty)
apt-get install rcconf
you may also try chkconfig, the following link tells you about this tool: