Remove dead code
This commit is contained in:
parent
da3c22b4a6
commit
d2c28d12a2
@ -35,18 +35,6 @@ systemd_version_changed() {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
possibly_run_save_script() {
|
|
||||||
ENCODED_SCRIPT=$(qubesdb-read /qubes-save-script)
|
|
||||||
if [ -z "$ENCODED_SCRIPT" ] ; then return ; fi
|
|
||||||
tmpfile=$(mktemp /tmp/qubes-save-script.XXXXXXXXX)
|
|
||||||
echo "$ENCODED_SCRIPT"|base64 -d >"$tmpfile"
|
|
||||||
chmod 755 "$tmpfile"
|
|
||||||
DISPLAY=:0 su - user -c "$tmpfile"
|
|
||||||
ret=$?
|
|
||||||
rm -f "$tmpfile"
|
|
||||||
return $ret
|
|
||||||
}
|
|
||||||
|
|
||||||
have_qubesdb() {
|
have_qubesdb() {
|
||||||
# Tests whether qubesdb-read exists and can be executed.
|
# Tests whether qubesdb-read exists and can be executed.
|
||||||
type qubesdb-read >/dev/null 2>&1
|
type qubesdb-read >/dev/null 2>&1
|
||||||
|
Loading…
Reference in New Issue
Block a user