source: lliurex-moving-core/trunk/fuentes/profile.d/llx-moving-load.sh @ 5971

Last change on this file since 5971 was 5971, checked in by hectorgh, 3 years ago

fixing profile.d call

File size: 529 bytes
Line 
1#!/bin/sh
2
3if [ "$XDG_CURRENT_DESKTOP" != "" ]; then
4
5        if [ "$UID" -gt "1041" ]; then 
6
7                RC=0
8                RET=$(n4d-client -h server -m is_frozen_user -c Golem -a $USER 2>/dev/null || echo False)
9
10                # Fallback in case function is not supported. It should be, but still...
11                RET=$( echo $RET | grep FUNCTION 1>/dev/null && echo False || echo $RET )
12
13                # If not False (ie True), user is frozen
14                echo $RET | grep False 1>/dev/null || RC=1
15
16
17                llx-moving-cmd load || true
18
19                if [ $RC -eq 1 ]; then
20                        dconf reset -f / || true
21                fi
22
23        fi
24fi
25
Note: See TracBrowser for help on using the repository browser.