-
Originally Posted by
utu
Heres' my latest. On-line now in 50 seconds.
#!/bin/bash
# /etc/rc.local (mine is root:root and executable)
# other stuff(1)
setwifi () { # see
http://ubuntuforums.org/showthread.php?t=684495
WIFI="eth1"; dhclient -r $WIFI; ifconfig $WIFI up
iwconfig $WIFI essid "(alphanumeric ssid)" key "(hexadecimal wep)" mode "Managed"
nohup dhclient $WIFI; wait >/dev/null 2>&1
aplay -vv /usr/lib/libreoffice/basis3.3/share/gallery/sounds/ok.wav
}
# other stuff(2)
setwifi
# other stuff(3)
exit 0
ATT: knoppix team
Q: How would this script be ammended to my existing 'rc.local' and made 'root:root' & 'executable'?
Code:
#!/bin/bash
#
# rc.local
#
# Start local services after hardware detection
SERVICES="cups"
for i in $SERVICES; do
[ -x /etc/init.d/"$i" ] && /etc/init.d/"$i" start >/dev/null 2>&1
done
exit 0
THX!
luther
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G
$13.99
Samsung CN M471A1K43CB1-CRC 8GB 1Rx8 PC4-2400T-SA1-11 RAM Memory
$11.00
Crucial DDR3L 16GB 1600 2x 8GB PC3-12800 Laptop SODIMM Memory RAM PC3 16G DDR3
$19.00
Team T-FORCE VULCAN Z 32GB (2 x 16GB) PC RAM DDR4 3200 (PC4 25600) Memory
$54.99
Crucial DDR3L 16GB 1600 2x 8GB PC3-12800 Laptop SODIMM Memory RAM PC3 16G DDR3
$22.45
HyperX FURY DDR3 8GB 16GB 32GB 1600 MHz PC3-12800 Desktop RAM Memory DIMM 240pin
$23.95
CORSAIR Vengeance RGB Pro 64GB (2x32GB) DDR4 SDRAM 3600MHz C18 Memory Kit -...
$103.00
HyperX FURY RAM DDR4 16GB 8GB 32GB 4GB 3200 2666 2400 2133 Desktop Memory DIMM
$9.64
LOT 4x 32GB (128GB) Samsung M386B4G70DM0-CMA3 PC3-14900L ECC DIMM Server Memory
$39.99
32GB 16GB 8GB DDR3 2400MHz G.Skill Ripjaws DIMM Overclock Gaming Memory RAM LOT
$69.99