21 lines
486 B
Bash
Executable file
21 lines
486 B
Bash
Executable file
#!/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"
|
|
|
|
links=(
|
|
# udev rules
|
|
"apps/udev-rules/lowbat" "/etc/udev/rules.d/99-lowbat.rules"
|
|
|
|
# tmpfiles
|
|
"apps/tmpfiles/disable-lid-wakeup" "/etc/tmpfiles.d/disable-lid-wakeup.conf"
|
|
)
|
|
|
|
_dotfiles_setup_run_setup "$dfp/.agreed-to-erasing-root-files.lock" "${links[@]}"
|
|
|