-
![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
![Genuine Apple OEM 60W Magsafe Charger / AC Adapter for A1278 MacBook Pro Air picture](/store/img/g/SkAAAOSwbbFmMWbp/s-l225/Genuine-Apple-OEM-60W-Magsafe-Charger-AC-Adapter-f.jpg)
Genuine Apple OEM 60W Magsafe Charger / AC Adapter for A1278 MacBook Pro Air
$7.99
![Genuine OEM Apple 30W USB-C Power Adapter Charger 2m Cable iPhone 15, iPad Pro picture](/store/img/g/P-sAAOSwCF5mYd-Y/s-l225/Genuine-OEM-Apple-30W-USB-C-Power-Adapter-Charger-.jpg)
Genuine OEM Apple 30W USB-C Power Adapter Charger 2m Cable iPhone 15, iPad Pro
$27.00
![Genuine OEM Apple USB-C type c to MagSafe 3 Cable 2 M- MLYV3AM/A picture](/store/img/g/N6EAAOSwWOFk3cj-/s-l225/Genuine-OEM-Apple-USB-C-type-c-to-MagSafe-3-Cable-.jpg)
Genuine OEM Apple USB-C type c to MagSafe 3 Cable 2 M- MLYV3AM/A
$22.95
![Apple OEM 96W USB-C Power Adapter (A2166) picture](/store/img/g/3JQAAOSwNWRmgHVH/s-l225/Apple-OEM-96W-USB-C-Power-Adapter-A2166-.jpg)
Apple OEM 96W USB-C Power Adapter (A2166)
$30.99
![Genuine OEM Apple 12W USB Power Adapter Type A Wall Charger for iPhone & iPad picture](/store/img/g/8poAAOSwK8BmAtxE/s-l225/Genuine-OEM-Apple-12W-USB-Power-Adapter-Type-A-Wal.jpg)
Genuine OEM Apple 12W USB Power Adapter Type A Wall Charger for iPhone & iPad
$4.49
![Genuine Original OEM APPLE Thunderbolt Cable 2M MC913ZM/A MD861LL/A White 6.5ft picture](/store/img/g/gNQAAOSw01djniha/s-l225/Genuine-Original-OEM-APPLE-Thunderbolt-Cable-2M-MC.jpg)
Genuine Original OEM APPLE Thunderbolt Cable 2M MC913ZM/A MD861LL/A White 6.5ft
$18.99
![Apple 45W A1436 OEM MagSafe 2 Power Adapter Genuine for Mac picture](/store/img/g/fOIAAOSw9whmcdgI/s-l225/Apple-45W-A1436-OEM-MagSafe-2-Power-Adapter-Genuin.jpg)
Apple 45W A1436 OEM MagSafe 2 Power Adapter Genuine for Mac
$5.99
![OEM MagSafe 2 Apple Charger For MacBook Pro Air 13 15 2012-2015 AC Power 85W picture](/store/img/g/6N8AAOSw9HlmcfkD/s-l225/OEM-MagSafe-2-Apple-Charger-For-MacBook-Pro-Air-13.jpg)
OEM MagSafe 2 Apple Charger For MacBook Pro Air 13 15 2012-2015 AC Power 85W
$15.00
![Genuine Apple OEM 12W USB Wall Charger & Cable for iPad Pro, Air, and Mini picture](/store/img/g/EDYAAOSwLtFmY2jv/s-l225/Genuine-Apple-OEM-12W-USB-Wall-Charger-Cable-for-i.jpg)
Genuine Apple OEM 12W USB Wall Charger & Cable for iPad Pro, Air, and Mini
$14.99
![Genuine OEM Apple 45W MagSafe 2 Charger for MacBook Air / Pro TESTED - WORKING- picture](/store/img/g/G0gAAOSwv3Vjwc4C/s-l225/Genuine-OEM-Apple-45W-MagSafe-2-Charger-for-MacBoo.jpg)
Genuine OEM Apple 45W MagSafe 2 Charger for MacBook Air / Pro TESTED - WORKING-
$8.93