Update aoni-ep01j05 customization

This commit is contained in:
Signor Pellegrino (from Citadel PC)
2023-12-20 00:01:04 +03:00
parent 8de14746a8
commit e9c508c0b0
4 changed files with 32 additions and 3 deletions

View File

@@ -0,0 +1,18 @@
#!/bin/sh
# load vendor specific drivers
vendor=$(ipcinfo -v)
log_vendor() {
logger -s -p daemon.info -t ${vendor} "$1"
}
case "$1" in
start)
[ "${vendor}" = "goke" ] || [ "${vendor}" = "hisilicon" ] && status=$(check_mac)
[ -n "${status}" ] && log_vendor "${status}"
echo -e '\nLoading of kernel modules...'
gpio clear 14
load_${vendor} -i
;;
esac