Bash-Shell

Diff code posted by test
created at 27 Jun 10:10

Edit | Back
1
2
3
4
5
6
7
8
check_exist=`grep -c DisallowTCP /etc/gdm/custom.conf`
if [ $check_exist -eq 0 ]
then
        sed -i '/\[security]/ a\DisallowTCP=false' /etc/gdm/custom.conf;
        sleep 2;
else
        echo "Already Deny TCP Connection to Xserver"
fi
246 Bytes in 2 ms with coderay