#!/bin/bash
[ "$UID" != 0 ] && { exec sudo bash "$0" && exit 0; }
echo "Установка gksudo для графической консоли."
text='pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY $@'
file='/usr/local/bin/gksudo' && echo "$text" >"$file" && chmod 755 "$file"
