Commit | Line | Data |
---|---|---|
1 | #!/bin/sh | |
2 | ||
3 | NAME="Live system info" | |
4 | MSG="Reserved OMAP video layer requires root access, please enter the password." | |
5 | ||
6 | cp -n config.cfg.default config.cfg | |
7 | ||
8 | if test -f /etc/slackware-version; then | |
9 | ||
10 | # ktsuss -m "$MSG" ./liveinfo | |
11 | gksu -D "$NAME" -m "$MSG" ./liveinfo | |
12 | ||
13 | else | |
14 | ||
15 | t=`which terminal` | |
16 | if [ -z "$t" ]; then | |
17 | zenity --error --text='terminal is missing.' | |
18 | exit 1 | |
19 | fi | |
20 | ||
21 | gksudo -D "$NAME" -m "$MSG" ./liveinfo | |
22 | ||
23 | fi |