-
![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
![Intel Core i7-4790K SR219 4.00GHZ 4Th Gen Used Desktop Processor CPU FCLGA1150 picture](/store/img/g/klEAAOSwVO1mdf-P/s-l225/Intel-Core-i7-4790K-SR219-4-00GHZ-4Th-Gen-Used-Des.jpg)
Intel Core i7-4790K SR219 4.00GHZ 4Th Gen Used Desktop Processor CPU FCLGA1150
$64.99
![AMD Ryzen 9 7900X3D Gaming Processor - 12 Core And 24 Threads picture](/store/img/g/lUEAAOSw4exmMBDH/s-l225/AMD-Ryzen-9-7900X3D-Gaming-Processor-12-Core-And-2.jpg)
AMD Ryzen 9 7900X3D Gaming Processor - 12 Core And 24 Threads
$309.99
![Intel Core i7-8700 3.20 GHz CPU Processor SR3QS picture](/store/img/g/fRsAAOSwTP5mgE9c/s-l225/Intel-Core-i7-8700-3-20-GHz-CPU-Processor-SR3QS.jpg)
Intel Core i7-8700 3.20 GHz CPU Processor SR3QS
$92.00
![Intel - Core i9-14900K 14th Gen 24-Core 32-Thread - 4.4GHz (6.0GHz Turbo) Soc... picture](/store/img/g/YFUAAOSwTDplMDa3/s-l225/Intel-Core-i9-14900K-14th-Gen-24-Core-32-Thread-4-.jpg)
Intel - Core i9-14900K 14th Gen 24-Core 32-Thread - 4.4GHz (6.0GHz Turbo) Soc...
$619.99
![Intel - Core i5-14600K 14th Gen 14-Core 20-Thread - 4.0GHz (5.3GHz Turbo) Soc... picture](/store/img/g/2f8AAOSw7ltlMDW2/s-l225/Intel-Core-i5-14600K-14th-Gen-14-Core-20-Thread-4-.jpg)
Intel - Core i5-14600K 14th Gen 14-Core 20-Thread - 4.0GHz (5.3GHz Turbo) Soc...
$339.99
![Intel - Core i7-14700K 14th Gen 20-Core 28-Thread - 4.3GHz (5.6GHz Turbo) Soc... picture](/store/img/g/0eYAAOSwcHZlMDWu/s-l225/Intel-Core-i7-14700K-14th-Gen-20-Core-28-Thread-4-.jpg)
Intel - Core i7-14700K 14th Gen 20-Core 28-Thread - 4.3GHz (5.6GHz Turbo) Soc...
$444.99
![Intel Core i7 CPU Processors, I7 2600, i7 3770, i7 4770, i7 4790 picture](/store/img/g/kr4AAOSw~7BiZtZ2/s-l225/Intel-Core-i7-CPU-Processors-I7-2600-i7-3770-i7-47.jpg)
Intel Core i7 CPU Processors, I7 2600, i7 3770, i7 4770, i7 4790
$28.99
![Intel Core I7-4770 3.40GHz SR149 Processor picture](/store/img/g/MVcAAOSwI7VmgHUe/s-l225/Intel-Core-I7-4770-3-40GHz-SR149-Processor.jpg)
Intel Core I7-4770 3.40GHz SR149 Processor
$29.00
![13th Gen Intel 14-Core i5-13500T Turbo Boost up to 4.6 GHz Processor 8K Support picture](/store/img/g/ztMAAOSwoA1lU8wp/s-l225/13th-Gen-Intel-14-Core-i5-13500T-Turbo-Boost-up-to.jpg)
13th Gen Intel 14-Core i5-13500T Turbo Boost up to 4.6 GHz Processor 8K Support
$169.00
![Intel Core i7-7820X SR3L5 @3.60GHz 8-Core Socket LGA2066 CPU picture](/store/img/g/pIAAAOSw27FmUMRY/s-l225/Intel-Core-i7-7820X-SR3L5-3-60GHz-8-Core-Socket-LG.jpg)
Intel Core i7-7820X SR3L5 @3.60GHz 8-Core Socket LGA2066 CPU
$65.40