mirror of
https://github.com/brain-hackers/brain-config.git
synced 2024-12-22 20:20:06 +09:00
Test functions added for remote GPIO and slow boot.
This commit is contained in:
parent
03775acf7a
commit
5fcbf6c177
16
raspi-config
16
raspi-config
@ -773,6 +773,14 @@ do_boot_behaviour_new() {
|
||||
fi
|
||||
}
|
||||
|
||||
get_boot_fast() {
|
||||
if test -e /etc/systemd/system/dhcpcd.service.d/wait.conf; then
|
||||
echo 1
|
||||
else
|
||||
echo 0
|
||||
fi
|
||||
}
|
||||
|
||||
do_wait_for_network() {
|
||||
get_init_sys
|
||||
if [ $SYSTEMD -eq 0 ]; then
|
||||
@ -810,6 +818,14 @@ EOF
|
||||
fi
|
||||
}
|
||||
|
||||
get_rgpio() {
|
||||
if test -e /etc/systemd/system/pigpiod.service.d/public.conf; then
|
||||
echo 0
|
||||
else
|
||||
echo 1
|
||||
fi
|
||||
}
|
||||
|
||||
do_gpiosec() {
|
||||
get_init_sys
|
||||
if [ $SYSTEMD -eq 0 ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user