blob: 6cb682abb01caba14f047b789a5456125ea6cedb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/bin/sh
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
# ex: ts=8 sw=4 sts=4 et filetype=sh
CIO_IGNORE=$(getarg cio_ignore)
CIO_ACCEPT=$(getarg rd.cio_accept)
if [ -z "$CIO_IGNORE" ]; then
info "cio_ignored disabled on commandline"
return
fi
if [ -n "$CIO_ACCEPT" ]; then
OLDIFS="$IFS"
IFS=,
# shellcheck disable=SC2086
set -- $CIO_ACCEPT
while [ "$#" -gt 0 ]; do
info "Enabling device $1"
cio_ignore --remove "$1"
shift
done
IFS="$OLDIFS"
fi
|