netgo
来自「Linux/Windows 环境下跨平台程序」· 代码 · 共 33 行
TXT
33 行
#! /bin/bash## This is a small bash-script that executes netGo with root-privileges.# Either with "kdesu" (if available) or the "su -c"-method.## Check if we allready are root.if [ `id -u` = "0" ] then /usr/netgo/netgo-bin $1else # Check if the user wants to execute from command line. if [ "$1" != "" ] then echo "Please enter your root-password to be able to execute the profile." su -c "/usr/netgo/netgo-bin $1" else # Exec a command that searches for "kdesu" in the path. which kdesu > /dev/null 2>&1 # If the exit-status is 1 - kdesu is not in the path. if [ $? = "1" ]; then xhost +localhost echo "Please enter your root-password to be able to use this program for changing your network-settings." su -c "/usr/netgo/netgo-bin $1" else kdesu "/usr/netgo/netgo-bin $1" fi fifi
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?