#!/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