mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
Merge from bittboy/buildroot@db180c0
This commit is contained in:
33
board/intel/galileo/rootfs_overlay/etc/init.d/S09modload
Executable file
33
board/intel/galileo/rootfs_overlay/etc/init.d/S09modload
Executable file
@@ -0,0 +1,33 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
|
||||
load_drivers()
|
||||
{
|
||||
while IFS= read -r line; do
|
||||
modprobe $line
|
||||
done < "/etc/modules-load.galileo/$1.conf"
|
||||
}
|
||||
|
||||
do_board()
|
||||
{
|
||||
board=$(cat /sys/devices/virtual/dmi/id/board_name)
|
||||
case "$board" in
|
||||
*"GalileoGen2" )
|
||||
load_drivers "galileo_gen2" ;;
|
||||
*"Galileo" )
|
||||
load_drivers "galileo" ;;
|
||||
esac
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
do_board
|
||||
;;
|
||||
stop)
|
||||
;;
|
||||
restart|reload)
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart}"
|
||||
exit 1
|
||||
esac
|
||||
@@ -0,0 +1,3 @@
|
||||
intel_qrk_gip
|
||||
cy8c9540a
|
||||
ad7298
|
||||
@@ -0,0 +1,4 @@
|
||||
intel_qrk_gip
|
||||
gpio-pca953x
|
||||
pca9685
|
||||
adc1x8s102
|
||||
Reference in New Issue
Block a user