diff options
author | Sam Burgos | 2018-07-09 09:50:24 -0600 |
---|---|---|
committer | Sam Burgos | 2018-07-09 09:50:24 -0600 |
commit | 41b33d3c30a5f2d49a3b3142f1d1b1ad1e2d6045 (patch) | |
tree | 1b8aaf35f3d5fda4898e393ae81d03276842e169 /add-autologin-group.install | |
parent | 62108e850a1047365a62b0009d40c7172f6a48c5 (diff) | |
download | aur-41b33d3c30a5f2d49a3b3142f1d1b1ad1e2d6045.tar.gz |
updated PKGBUILD and removed the auto-login service scripts (these will be added to another package)
Diffstat (limited to 'add-autologin-group.install')
-rw-r--r-- | add-autologin-group.install | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/add-autologin-group.install b/add-autologin-group.install deleted file mode 100644 index c70fc5f03b74..000000000000 --- a/add-autologin-group.install +++ /dev/null @@ -1,45 +0,0 @@ -# Colored makepkg-like functions -msg_blue() { - printf "${blue}==>${bold} $1${all_off}\n" -} - -note() { - printf "${blue}==>${yellow} NOTE:${bold} $1${all_off}\n" -} - -all_off="$(tput sgr0)" -bold="${all_off}$(tput bold)" -blue="${bold}$(tput setaf 4)" -yellow="${bold}$(tput setaf 3)" - -post_install() { - - systemctl is-active add-autologin-group >/dev/null || systemctl enable add-autologin-group - - echo "" - note "We have enabled autologin for all users." - note "Reboot your system the first time, so changes will take affect." - echo "" -} - -post_upgrade() { - - post_install -} - -post_remove() { - - ! systemctl is-active add-autologin-group >/dev/null || systemctl disable add-autologin-group - - grep autologin /etc/group - if [[ "$?" -eq 0 ]]; then - groupdel autologin >/dev/null - else echo "" - note"Autologin group already removed" - echo "" - echo "" - note "We have disabled autologin for all users and removed autologin group." - note "Reboot your system, so changes will take affect." - echo "" - fi -} |