summaryrefslogtreecommitdiff
path: root/localnetcfgchange
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2008-01-17 21:48:32 +0000
committerJonas Smedegaard <dr@jones.dk>2008-01-17 21:48:32 +0000
commitb3a98a7ac504ecdf172f2043a6ccf72d0d94c4da (patch)
tree7d7cc3ded48fd1366c21838380b2a838b000cbeb /localnetcfgchange
parent4d889b8d14354c9a45aad19f3e854a1d70487d28 (diff)
Fix gksudo syntax.
Diffstat (limited to 'localnetcfgchange')
-rwxr-xr-xlocalnetcfgchange2
1 files changed, 1 insertions, 1 deletions
diff --git a/localnetcfgchange b/localnetcfgchange
index 7728eeb..8988bc5 100755
--- a/localnetcfgchange
+++ b/localnetcfgchange
@@ -13,6 +13,6 @@ title=${2:-Network setup}
text=${3:-Network setup succesfully changed. The change takes effect after next system restart.}
if [ -f "/etc/network/interfaces.$1" ]; then
- gksudo "/bin/cp -f \"/etc/network/interfaces.$1\" /etc/network/interfaces" \
+ gksudo -- /bin/cp -f "/etc/network/interfaces.$1" /etc/network/interfaces \
&& zenity --info --title "$title" --text "$text"
fi