-
![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
![CISCO UCSB-B200-M5 UCS B200 M5 BLADE SERVER - CAN BUILD TO SPEC picture](/store/img/g/7asAAOSw7h5i~lS6/s-l225/CISCO-UCSB-B200-M5-UCS-B200-M5-BLADE-SERVER-CAN-BU.jpg)
CISCO UCSB-B200-M5 UCS B200 M5 BLADE SERVER - CAN BUILD TO SPEC
$495.00
![Dell PowerEdge FX2s CTO Blade 4 Slot 2U Chassis 2x 2000W picture](/store/img/g/9HsAAOSw3OZmMT~n/s-l225/Dell-PowerEdge-FX2s-CTO-Blade-4-Slot-2U-Chassis-2x.jpg)
Dell PowerEdge FX2s CTO Blade 4 Slot 2U Chassis 2x 2000W
$399.00
![HP ProLiant BL460c Gen9 Blade 2x E5-2690v4 2.6GHz =28 Cores 32GB P246 650FLB picture](/store/img/g/ofQAAOSw62Rk0wlt/s-l225/HP-ProLiant-BL460c-Gen9-Blade-2x-E5-2690v4-2-6GHz-.jpg)
HP ProLiant BL460c Gen9 Blade 2x E5-2690v4 2.6GHz =28 Cores 32GB P246 650FLB
$223.00
![DELL PowerEdge M630 Blade 2x E5-2680v4 2.4GHz =28 Cores 128GB H330 2x10Gb X520 picture](/store/img/g/GmIAAOSwC8Jk0V~~/s-l225/DELL-PowerEdge-M630-Blade-2x-E5-2680v4-2-4GHz-28-C.jpg)
DELL PowerEdge M630 Blade 2x E5-2680v4 2.4GHz =28 Cores 128GB H330 2x10Gb X520
$275.00
![Dell PowerEdge M620 Blade Server 2 x Xeon e5 2665 8 x 16 GB(128) RAM - No HD picture](/store/img/g/HUMAAOSwj3ZmdO6c/s-l225/Dell-PowerEdge-M620-Blade-Server-2-x-Xeon-e5-2665-.jpg)
Dell PowerEdge M620 Blade Server 2 x Xeon e5 2665 8 x 16 GB(128) RAM - No HD
$59.99
![HP ProLiant BL460c Gen9 Blade Server Intel Xeon E5-2698 v3 - 512GB RAM picture](/store/img/g/lasAAOSwj1hmYhKc/s-l225/HP-ProLiant-BL460c-Gen9-Blade-Server-Intel-Xeon-E5.jpg)
HP ProLiant BL460c Gen9 Blade Server Intel Xeon E5-2698 v3 - 512GB RAM
$255.42
![Sun Microsystems Blade 100 Workstation UltraSPARC-IIe 500MHz 256MB Server No HDD picture](/store/img/g/QnoAAOSw0mFmYklK/s-l225/Sun-Microsystems-Blade-100-Workstation-UltraSPARC-.jpg)
Sun Microsystems Blade 100 Workstation UltraSPARC-IIe 500MHz 256MB Server No HDD
$95.00
![Dell PowerEdge M620 Blade Server 2x 10C E5-2690v2 64GB Ram 2x 600GB 10k HDD picture](/store/img/g/JBcAAOSwdu1mXLZT/s-l225/Dell-PowerEdge-M620-Blade-Server-2x-10C-E5-2690v2-.jpg)
Dell PowerEdge M620 Blade Server 2x 10C E5-2690v2 64GB Ram 2x 600GB 10k HDD
$125.00
![Dell PowerEdge M640 Barebone Server Blade No Hard Drive Trays picture](/store/img/g/JpYAAOSwe81mNtOS/s-l225/Dell-PowerEdge-M640-Barebone-Server-Blade-No-Hard-.jpg)
Dell PowerEdge M640 Barebone Server Blade No Hard Drive Trays
$499.00
![HP BL460c G10 Blade 2x Gold 6140 2.3GHz =36 Cores 128GB P204i-B QMH2672 2x 20GB picture](/store/img/g/t-YAAOSw3G5k0wiH/s-l225/HP-BL460c-G10-Blade-2x-Gold-6140-2-3GHz-36-Cores-1.jpg)
HP BL460c G10 Blade 2x Gold 6140 2.3GHz =36 Cores 128GB P204i-B QMH2672 2x 20GB
$642.00