You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
496 B
23 lines
496 B
![]()
8 years ago
|
#!/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=,
|
||
|
set -- $CIO_ACCEPT
|
||
|
while (($# > 0)) ; do
|
||
|
info "Enabling device $1"
|
||
|
cio_ignore --remove $1
|
||
|
shift
|
||
|
done
|
||
|
IFS="$OLDIFS"
|
||
|
fi
|