Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
(cherry picked from commit d2c28d1)
  • Loading branch information
marmarek committed Sep 7, 2019
1 parent 478efb9 commit 1f8cba9
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions init/functions
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,6 @@ systemd_version_changed() {
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() {
# Tests whether qubesdb-read exists and can be executed.
type qubesdb-read >/dev/null 2>&1
Expand Down

0 comments on commit 1f8cba9

Please sign in to comment.