Skip to content

Commit 4587fd3

Browse files
authored
Merge pull request #1428 from hj-johannes-lee/PR-2023-016
dlb: make init script end with exit 0 when sriov_numvfs not found
2 parents 532f2fe + 82ecaf0 commit 4587fd3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

demo/dlb-init.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ enable_and_configure_vfs() {
55

66
sriov_numvfs_path="$devpath/sriov_numvfs"
77
if ! test -w "$sriov_numvfs_path"; then
8-
echo "error: $sriov_numvfs_path is not found or not writable. Check if dlb driver module is loaded"
9-
exit 1
8+
echo "$sriov_numvfs_path is not found or not writable. In case there is no configured VF yet, check if dlb driver module is loaded"
9+
exit 0
1010
fi
1111
if [ "$(cat "$sriov_numvfs_path")" -ne 0 ]; then
1212
echo "$devpath already configured"

0 commit comments

Comments
 (0)