Skip to content

Commit

Permalink
Merge pull request #158 from OmegaSquad82/isos
Browse files Browse the repository at this point in the history
zram-recompress now calls itself as root
  • Loading branch information
OmegaSquad82 authored Jan 31, 2025
2 parents 3c913f0 + 04af060 commit c7bc2dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions files/system/usr/sbin/recompress-zram
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ done

# ensure sysfs knobs can be meddled with
if [[ $(/usr/bin/id -u) -ne 0 ]]; then
$NOOP echo "Not running as root"
$NOOP exit
$NOOP sudo $0
$NOOP exit $?
fi

function print_states() {
Expand Down

0 comments on commit c7bc2dd

Please sign in to comment.