mirror of
https://github.com/linux-msm/bootrr.git
synced 2026-02-25 13:12:03 -08:00
The 'source' command is a bashism, and not in the POSIX standard. So it fails when using POSIX compliant shell such as Dash which is the default on Debian. Using the '.' command is equivalent to using source, and is POSIX compliant. Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
20 lines
354 B
Bash
Executable File
20 lines
354 B
Bash
Executable File
#!/bin/sh
|
|
|
|
. bootrr
|
|
|
|
TEST_CASE_ID="$1"
|
|
PARTITION=/dev/disk/by-partlabel/userdata
|
|
|
|
timeout 10 [ -L ${PARTITION} ] || test_report_exit blocked
|
|
|
|
if [ -d /lib/firmware -o -L /lib/firmware ]; then
|
|
test_report_exit skip
|
|
fi
|
|
|
|
mkdir -p /mnt
|
|
mount -t ext4 ${PARTITION} /mnt || test_report_exit failed
|
|
|
|
ln -s /mnt/lib/firmware /lib/firmware
|
|
|
|
test_report_exit pass
|