This repository has been archived on 2024-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/bin/lib/sudo_setup

22 lines
486 B
Text
Raw Normal View History

2018-11-08 09:34:17 -06:00
#!/usr/bin/env bash
if [[ $UID -ne 0 ]]; then
echo "Re-running with 'sudo -E'..."
sudo -E "$0" "$@"
exit
fi
dfp=$(cd "$(dirname "${BASH_SOURCE[0]}" )/../../" && pwd)
source "${dfp}/bin/lib/setup_helpers.bash"
2018-11-08 09:34:17 -06:00
links=(
2020-01-16 13:28:23 -06:00
# udev rules
2020-03-24 12:05:08 -05:00
"apps/udev-rules/lowbat" "/etc/udev/rules.d/99-lowbat.rules"
2020-01-16 13:28:23 -06:00
# tmpfiles
2020-03-24 12:05:08 -05:00
"apps/tmpfiles/disable-lid-wakeup" "/etc/tmpfiles.d/disable-lid-wakeup.conf"
2018-11-08 09:34:17 -06:00
)
_dotfiles_setup_run_setup "$dfp/.agreed-to-erasing-root-files.lock" "${links[@]}"