Quellcodebibliothek Statistik Leitseite products/sources/formale Sprachen/C/Linux/Documentation/firmware_class/   (Open Source Betriebssystem Version 6.17.9©)  Datei vom 24.10.2025 mit Größe 443 B image not shown  

Quelle  hotplug-script   Sprache: unbekannt

 
Quellsprache: Binärcode aufgebrochen in jeweils 16 ZeichenUnknown {[0] [0] [0]}zum Wurzelverzeichnis wechseln

#!/bin/sh

# Simple hotplug script sample:

# Both $DEVPATH and $FIRMWARE are already provided in the environment.

HOTPLUG_FW_DIR=/usr/lib/hotplug/firmware/

if [ "$SUBSYSTEM" == "firmware" -a "$ACTION" == "add" ]; then
  if [ -f $HOTPLUG_FW_DIR/$FIRMWARE ]; then
    echo 1 > /sys/$DEVPATH/loading
    cat $HOTPLUG_FW_DIR/$FIRMWARE > /sys/$DEVPATH/data
    echo 0 > /sys/$DEVPATH/loading
  else
    echo -1 > /sys/$DEVPATH/loading
  fi
fi

[ zur Elbe Produktseite wechseln0.100Quellennavigators  ]