summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikhail Velichko2022-07-29 00:36:23 +0300
committerMikhail Velichko2022-07-29 00:36:23 +0300
commit8ee3c87c71e8a269c6fc4420c68b2f2a93a03448 (patch)
treed6b9926794ed2d2198c9e6ff9a43c3ef941b6d3e
parent03686bafb3d0336a07d5ba7d6a12228d66d03ba6 (diff)
downloadaur-8ee3c87c71e8a269c6fc4420c68b2f2a93a03448.tar.gz
Remove old scripts
-rw-r--r--bluetooth.install46
1 files changed, 0 insertions, 46 deletions
diff --git a/bluetooth.install b/bluetooth.install
deleted file mode 100644
index ae41ae881bdb..000000000000
--- a/bluetooth.install
+++ /dev/null
@@ -1,46 +0,0 @@
-msg() {
- ALL_OFF="\e[1;0m"
- BOLD="\e[1;1m"
- GREEN="${BOLD}\e[1;32m"
- local mesg=$1; shift
- printf "${GREEN}==>${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}" "$@" >&2
-}
-add_users() {
- _l="/etc/login.defs"
- _p="/etc/passwd"
-
- ## get mini UID limit ##
- l=$(grep "^UID_MIN" $_l)
-
- ## get max UID limit ##
- l1=$(grep "^UID_MAX" $_l)
-
- ## use awk to print if UID >= $MIN and UID <= $MAX and shell is not /sbin/nologin ##
- users=$(awk -F':' -v "min=${l##UID_MIN}" -v "max=${l1##UID_MAX}" '{ if ( $3 >= min && $3 <= max && $7 != "/sbin/nologin" ) print $0 }' "$_p" | cut -d: -f1)
- for i in $users; do
- msg "Adding user '$i' to user-group 'lp'"
- usermod -a -G lp $i
- done
-}
-
-add_group() {
- getent group "lp" &>/dev/null || groupadd -r lp
- add_users
-}
-
-post_install() {
-post_upgrade
-}
-
-post_upgrade() {
- msg "Attempting to enable services..."
- systemctl is-active bluetooth.service >/dev/null || systemctl enable bluetooth.service
- add_group
- echo ""
- msg "services should now be enabled."
- msg "Please add new users to 'lp' group."
- msg "Reboot your system, so changes will take effect.."
- echo ""
-}
-
-# vim: ts=2 sw=2 et: