{ "name": "sdparm", "version": "1.12", "summary": "sdparm: reads and changes the mode pages of SCSI and SATA disks (write cache, power conditions), sends start and stop", "category": "tool", "license": "BSD-2-Clause", "homepage": "https://sg.danny.cz/sg/sdparm.html", "source": { "url": "https://deb.debian.org/debian/pool/main/s/sdparm/sdparm_1.12.orig.tar.xz", "sha256": "c4c9efafdbeb662e2f9712707ec490932bd4d010bb1129ae7a99526546eeadbe" }, "watch": {"kind": "index", "url": "https://deb.debian.org/debian/pool/main/s/sdparm/", "regex": "sdparm_([0-9]+(?:\\.[0-9]+)+)\\.orig\\.tar\\.xz"}, "deps": [], "env_packages": [], "static": true, "nss": false, "check": "bin/sdparm --version 2>&1 | has '^version: 1.12' && t=$(mktemp -d) && printf '00 1a 00 00 00 00 00 00\\n08 12 04 00 ff ff 00 00 ff ff ff ff 80 14 00 00 00 00 00 00\\n' > \"$t/on.hex\" && printf '00 1a 00 00 00 00 00 00\\n08 12 01 00 ff ff 00 00 ff ff ff ff 00 14 00 00 00 00 00 00\\n' > \"$t/off.hex\" && bin/sdparm --inhex=\"$t/on.hex\" --page=ca > \"$t/on\" 2>&1 && has '^Caching (SBC) mode page' < \"$t/on\" && has -E '^ +WCE +1$' < \"$t/on\" && has -E '^ +RCD +0$' < \"$t/on\" && has -E '^ +FSW +1$' < \"$t/on\" && bin/sdparm --inhex=\"$t/off.hex\" --page=ca > \"$t/off\" 2>&1 && has -E '^ +WCE +0$' < \"$t/off\" && has -E '^ +RCD +1$' < \"$t/off\" && has -E '^ +FSW +0$' < \"$t/off\" && bin/sdparm --enumerate --page=po 2>&1 | has 'STANDBY' && echo 'sdparm 1.12: two caching mode pages decoded from MODE SENSE(10) data (write cache on, then read cache off); the power condition fields listed'" }