
cat > /srv/prometheus/services/login/auto-teacher << "EOF"
#!/bin/bash                                                                                                          
. /lib/lsb/init-functions

case "$1" in
        start)
            [ !    -f /etc/default/system.auto.teacher ] && exit 0
            AUTO=$( cat /etc/default/system.auto.teacher | base64 -d)
            gio mount smb://192.168.159.242/Учителя <<< "$AUTO"
            ln -s "/run/user/1000/gvfs/smb-share:server=192.168.159.242,share=учителя" /home/user/Desktop/Учителя
            ;;

        stop)
            echo "Нет выполняемых задач"
            ;;
esac
EOF

cat > /etc/default/system.auto.teacher << "EOF"
dGVhY2hlcgpXT1JLR1JPVVAKbVE0bXVLdmpKaFhX
EOF

chmod    +x    /srv/prometheus/services/login/auto-teacher
