#!/bin/bash

# Stop the network
/etc/rc.d/init.d/network stop

# Remove the network-module
rmmod eepro100

# Kill all programs that use the soundcard
fuser -s -k /dev/dsp /dev/audio /dev/mixer
#killall esd

# Remove the sound-modules
#rmmod cs46xx ac97_codec
rmmod cs46xx
insmod cs46xx -k

# Restore volume to my defaults
aumix -v 100 -w 100 &> /dev/null

# Restart the e sound daemon
esd &

# Restore the hardware clock
hwclock --hctosys

# Start the network and unload the network module en passant
/etc/rc.d/init.d/network start

# Restart printcap to resolve printer IP
/etc/rc.d/init.d/lpd restart
