File: 11-video-pci-restore.sh

package info (click to toggle)
acpi-support 0.143-5.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 828 kB
  • sloc: sh: 816; ansic: 131; makefile: 38
file content (11 lines) | stat: -rw-r--r-- 243 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

# Restore video PCI state
if [ x$SAVE_VIDEO_PCI_STATE = xtrue ]; then
  for x in /sys/bus/pci/devices/*; do
    if [ -f /var/run/vga-pci-`basename $x` ]; then
        cat /var/run/vga-pci-`basename $x` >$x/config;
    fi
  done
fi