Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:HEBH
displaylink
displaylink-sleep-extractor.sh
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File displaylink-sleep-extractor.sh of Package displaylink
#!/bin/bash file=$1 startline=$(grep -n "create_pm_script()" "$file" | cut -d: -f1 | head -1) endline=$(grep -n 'chmod 0755 /etc/zzz.d/resume/displaylink.sh' "$file" | cut -d: -f1 | head -1) source <( tail -n +$startline $file | head -n +$(($endline - $startline + 5)) ) COREDIR=$(mktemp -d) create_pm_script "systemd" "$COREDIR" sed -i -e '1 s/^.*$/\#!\/usr\/bin\/bash/' "$COREDIR/suspend.sh" cat "$COREDIR/suspend.sh" rm -rf "$COREDIR"
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor