docker image for rpi3_64
This commit is contained in:
26
recipes-core/busybox/files/S20load_modules.sh
Normal file
26
recipes-core/busybox/files/S20load_modules.sh
Normal file
@@ -0,0 +1,26 @@
|
||||
#!/bin/sh
|
||||
|
||||
LOAD_DIR="/etc/modules-load.d"
|
||||
MODULES="$(ls $LOAD_DIR)"
|
||||
|
||||
case "${1}" in
|
||||
start)
|
||||
for MOD in $MODULES;
|
||||
do
|
||||
while read module args;
|
||||
do
|
||||
# Ignore comments and blank lines
|
||||
case "$module" in
|
||||
""|"#"*) continue;;
|
||||
esac
|
||||
|
||||
modprobe ${module} ${args}
|
||||
done < $LOAD_DIR/$MOD
|
||||
done
|
||||
;;
|
||||
*)
|
||||
echo "Usage: ${0} {start}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
5
recipes-core/busybox/files/fragments.cfg
Normal file
5
recipes-core/busybox/files/fragments.cfg
Normal file
@@ -0,0 +1,5 @@
|
||||
CONFIG_NTPD=y
|
||||
CONFIG_FEATURE_NTPD_SERVER=y
|
||||
CONFIG_FEATURE_NTPD_CONF=y
|
||||
CONFIG_FEATURE_NTP_AUTH=y
|
||||
|
5
recipes-core/busybox/files/ntp.conf
Normal file
5
recipes-core/busybox/files/ntp.conf
Normal file
@@ -0,0 +1,5 @@
|
||||
server 0.europe.pool.ntp.org
|
||||
server 1.europe.pool.ntp.org
|
||||
server 2.europe.pool.ntp.org
|
||||
server 3.europe.pool.ntp.org
|
||||
|
12
recipes-core/busybox/files/ntpd
Normal file
12
recipes-core/busybox/files/ntpd
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
case "${1}" in
|
||||
start)
|
||||
ntpd -q
|
||||
;;
|
||||
*)
|
||||
echo "Usage: ${0} {start}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
Reference in New Issue
Block a user