logrotate: enable selinux support
[buildroot-gz.git] / board / intel / galileo / rootfs_overlay / etc / init.d / S09modload
blob359d607c18703b4a1e40481978f2ced290bdf60e
1 #!/bin/sh
4 load_drivers()
6 while IFS= read -r line; do
7 modprobe $line
8 done < "/etc/modules-load.galileo/$1.conf"
11 do_board()
13 board=$(cat /sys/devices/virtual/dmi/id/board_name)
14 case "$board" in
15 *"GalileoGen2" )
16 load_drivers "galileo_gen2" ;;
17 *"Galileo" )
18 load_drivers "galileo" ;;
19 esac
22 case "$1" in
23 start)
24 do_board
26 stop)
28 restart|reload)
31 echo "Usage: $0 {start|stop|restart}"
32 exit 1
33 esac