#!/bin/bash

# configs
. /opt/chakra/bin/chd-functions
. /etc/chakra-hwdetect.conf

# needed hooks (located in /opt/chakra/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/chakra/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
