You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ublinux-init/ublinux/rc.xorg/90-secretnet

25 lines
692 B

#!/usr/bin/bash
#
# Author: Dmitry Razumov <asmeron@ublinux.com>
# Copyright (c) 2021-2025 UBLinux <support@ublinux.com>
#
# SPDX-License-Identifier: AGPL-3.0-or-later
#
# Used as a source
ENABLED=yes
[[ ${ENABLED} == "yes" ]] || { return 0 2>/dev/null && return 0 || exit 0; }
SNLIBS=/opt/secretnet/lib
if [[ -d "${SNLIBS}" ]]; then
getent group snlogger || addgroup snlogger
getent group snadmin || addgroup snadmin
ldconfig $SNLIBS
systemctl is-active sn >/dev/null || systemctl restart sn
export PATH=${PATH}:/usr/lib/ublinux/scripts:/opt/secretnet/sbin:/opt/secretnet/bin:/usr/lib/qt4/bin
/opt/secretnet/bin/snaidectl -i
/opt/secretnet/sbin/snunblock
fi