#!/bin/bash

# configs
. /opt/kdeos/bin/khd-functions
. /etc/kdeos-hwdetect.conf

# needed hooks (located in /opt/kdeos/hooks)
LOAD_HOOKS="hwdetect_1_base hwdetect_2_platform hwdetect_3_quirks hwdetect_5_network hwdetect_6_alsa hwdetect_7_graphics"

# load hooks
for hook in ${LOAD_HOOKS}
do
	. /opt/kdeos/hooks/${hook}
done

printhl "Inspecting hardware"
hwdetect_base
hwdetect_platform
hwdetect_quirks
hwdetect_network
printdone

printhl "Inspecting graphics hardware"
hwdetect_graphics
printdone

printhl "Setting up audio volume levels"
hwdetect_alsa
printdone
