#!/bin/bash
. /etc/utcs/func/func.sh
EXEC_DIR="/etc/utcs/scripts"

#for script in `ls $EXEC_DIR`
#do
#	script="$EXEC_DIR/$script"
#	. $script
#done

if [ "$#" -eq 1 ]; then
    case ${1} in
        --installer-init)   step=${1};;
        --installer-target) step=${1};;
        --first-boot)       step=${1};;
    esac
fi

if [ -z $step ]; then
        step="--installer-target"
fi

. $EXEC_DIR/fix_ethernet.sh
. $EXEC_DIR/fix_gpu.sh $step
. $EXEC_DIR/fix_wifi.sh
. $EXEC_DIR/fix_misc.sh