6 lines
235 B
Bash
6 lines
235 B
Bash
# Allow non-root users to call beep as root via sudo
|
|
# when configured without password in `/etc/sudoers.d/beep`.
|
|
|
|
if [ "${EUID:-}" != 0 ] && [ -x /usr/bin/beep ] && [ -x /usr/bin/sudo ]; then
|
|
alias beep='sudo -n /usr/bin/beep'
|
|
fi
|