correct PATH in overlay scripts

This commit is contained in:
DanyLE 2025-03-29 13:45:23 +01:00
parent 7b75b29500
commit 70caa69660
5 changed files with 5 additions and 2 deletions

View File

@ -6,6 +6,7 @@ if [[ $(/usr/bin/id -u) -ne 0 ]]; then
fi fi
. /etc/profile . /etc/profile
PATH=/sbin:/bin:/usr/sbin:/usr/bin
if [ ! -e /boot/diya-config.txt ]; then if [ ! -e /boot/diya-config.txt ]; then
# prepare env for recovery boot # prepare env for recovery boot

View File

@ -1,9 +1,9 @@
#!/bin/sh #!/bin/sh
PATH=/sbin:/bin:/usr/sbin:/usr/bin
DESC="Auto deployment configuration from media" DESC="Auto deployment configuration from media"
. /etc/profile . /etc/profile
PATH=/sbin:/bin:/usr/sbin:/usr/bin
if [ -z "$DISK" ]; then if [ -z "$DISK" ]; then
DISK="mmcblk0" DISK="mmcblk0"

View File

@ -1,5 +1,6 @@
#! /bin/sh #! /bin/sh
. /etc/profile . /etc/profile
PATH=/sbin:/bin:/usr/sbin:/usr/bin
if [ -z "$DISK" ]; then if [ -z "$DISK" ]; then
DISK="mmcblk0" DISK="mmcblk0"

View File

@ -1,8 +1,8 @@
#!/bin/sh #!/bin/sh
PATH=/sbin:/bin:/usr/sbin:/usr/bin
DESC="Custom configuration" DESC="Custom configuration"
. /etc/profile . /etc/profile
PATH=/sbin:/bin:/usr/sbin:/usr/bin
case "$1" in case "$1" in
start) start)

View File

@ -1,6 +1,7 @@
#! /bin/sh #! /bin/sh
. /etc/profile . /etc/profile
PATH=/sbin:/bin:/usr/sbin:/usr/bin
if [ -z "$DISK" ]; then if [ -z "$DISK" ]; then
DISK="mmcblk0" DISK="mmcblk0"