Moderator: Moderators
$ su
Password: <--- Enter the root user's password
# nano /etc/conf.d/local
'
' Edit the file and exit from nano
(see the command menu that nano displays along the bottom of the console window)
'
'
# exit
$ exit# Here is where you can put anything you need to start
# that there is not an init script for.
local_start() {
# This is a good place to load any misc programs
# on startup (use &>/dev/null to hide output)
# The following line added by j_futurama on 21 Jan. 2011
iwconfig eth0 power off
# We should always return 0
return 0
}
local_stop() {
# This is a good place to unload any misc.
# programs you started above.
# We should always return 0
return 0
}# Here is where you can put anything you need to start
# that there is not an init script for.
local_start() {
# This is a good place to load any misc programs
# on startup (use &>/dev/null to hide output)
# The following line added by j_futurama on 22 Jan. 2011
sleep 10s && iwconfig eth0 power off
# We should always return 0
return 0
}
local_stop() {
# This is a good place to unload any misc.
# programs you started above.
# We should always return 0
return 0
}#!/bin/sh
/sbin/iwconfig wlan0 power off
Return to Networking and Wireless
Users browsing this forum: No registered users and 1 guest