-
![Quote](images/misc/quote_icon.png)
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
![Grandstream GS-HT802 2 Port Analog Telephone Adapter VoIP Phone & Device, Black picture](/store/img/g/cEQAAOSwKIlgze4p/s-l225/Grandstream-GS-HT802-2-Port-Analog-Telephone-Adapt.jpg)
Grandstream GS-HT802 2 Port Analog Telephone Adapter VoIP Phone & Device, Black
$32.00
![Polycom VVX 411 IP VOIP POE Gigabit Telephone [L/N] BUSINESS OFFICE RECEPTION picture](/store/img/g/PZoAAOSwM3xmZJQs/s-l225/Polycom-VVX-411-IP-VOIP-POE-Gigabit-Telephone-L-N-.jpg)
Polycom VVX 411 IP VOIP POE Gigabit Telephone [L/N] BUSINESS OFFICE RECEPTION
$24.00
![Grandstream GXP1620 Small to Medium Business HD IP Phone VoIP Phone and Device picture](/store/img/g/abcAAOSwRdNmXhjA/s-l225/Grandstream-GXP1620-Small-to-Medium-Business-HD-IP.jpg)
Grandstream GXP1620 Small to Medium Business HD IP Phone VoIP Phone and Device
$21.68
![Polycom Poly VVX 250 4-Line 2.8](/store/img/g/ZI0AAOSwPnpmchDy/s-l225/Polycom-Poly-VVX-250-4-Line-2-8-Color-Display-VoIP.jpg)
Polycom Poly VVX 250 4-Line 2.8" Color Display VoIP IP Business Phone /w Stand
$18.99
![Cisco CP-7945G VOIP Phone With Stand & Handset Business IP Phone 7945 picture](/store/img/g/NjUAAOSwEmNmEw4x/s-l225/Cisco-CP-7945G-VOIP-Phone-With-Stand-Handset-Busin.jpg)
Cisco CP-7945G VOIP Phone With Stand & Handset Business IP Phone 7945
$3.00
![Cisco CP-8845-K9 5 Line IP Video Phone - Charcoal picture](/store/img/g/bNQAAOSwf61mDt9i/s-l225/Cisco-CP-8845-K9-5-Line-IP-Video-Phone-Charcoal.jpg)
Cisco CP-8845-K9 5 Line IP Video Phone - Charcoal
$25.00
![Obihai OBI202 2-Port VoIP Phone Adapter - picture](/store/img/g/UckAAOSwEftmajOq/s-l225/Obihai-OBI202-2-Port-VoIP-Phone-Adapter-.jpg)
Obihai OBI202 2-Port VoIP Phone Adapter -
$44.99
![Grandstream GS-GXP2160 Multiline Bluetooth VoIP Telephone - Black picture](/store/img/g/DWgAAOSwKr9mU5sT/s-l225/Grandstream-GS-GXP2160-Multiline-Bluetooth-VoIP-Te.jpg)
Grandstream GS-GXP2160 Multiline Bluetooth VoIP Telephone - Black
$23.99
![Lot of 4 Cisco CP-8861 Full Color PoE VOIP Desk Phone CP-8861-K9 V01 picture](/store/img/g/SmsAAOSwbBtmbiGR/s-l225/Lot-of-4-Cisco-CP-8861-Full-Color-PoE-VOIP-Desk-Ph.jpg)
Lot of 4 Cisco CP-8861 Full Color PoE VOIP Desk Phone CP-8861-K9 V01
$37.99
![Polycom VVX 410 VoIP IP Phone & Stand Warranty Reset VVX410 2201-46162-001 Lync picture](/store/img/g/mGsAAOSwvt1maMEl/s-l225/Polycom-VVX-410-VoIP-IP-Phone-Stand-Warranty-Reset.jpg)
Polycom VVX 410 VoIP IP Phone & Stand Warranty Reset VVX410 2201-46162-001 Lync
$17.98