/
githubmirror
/
sg3_utils
Обзор
Документация
Войти
/
githubmirror
/
sg3_utils
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
scripts/scsi-enable-target-scan.sh
15 строк
425 B
Douglas Gilbert
static checking cleanup; shellcheck on scripts
01 май 2026, 07:55
01 май 2026, 07:55
285f424
Код
Авторство
О чём код?
#!/bin/sh # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- # ex: ts=8 sw=4 sts=4 et filetype=sh MODPARM=/sys/module/scsi_mod/parameters if [ -w "$MODPARM/scan" ] ; then scan_type=$(cat $MODPARM/scan) if [ "$scan_type" = "manual" ] ; then echo sync > $MODPARM/scan for shost in /sys/class/scsi_host/host* ; do echo '- - -' > "${shost}"/scan done fi fi