Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2
s390-tools
dasdro
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File dasdro of Package s390-tools
#!/bin/bash # checks DASD accessibility in VM and sets Linux-side readonly attributes # accordingly modprobe -q vmcp vmcp q v dasd 2>/dev/null >/dev/null || exit 0 # not running in VM vmcp q v dasd | while read x dev rest do dev=`echo $dev|tr A-F a-f` roattr=/sys/bus/ccw/devices/?.?.$dev/readonly test -e $roattr || continue if echo "$rest"|grep -q R/O then echo 1 >$roattr else echo 0 >$roattr fi done
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