diff options
Diffstat (limited to 'net-dialup/rppppoek/files')
-rw-r--r-- | net-dialup/rppppoek/files/rppppoek-0.33-panelicon.patch | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net-dialup/rppppoek/files/rppppoek-0.33-panelicon.patch b/net-dialup/rppppoek/files/rppppoek-0.33-panelicon.patch index 16a64f42c36d..4bbd69dc8f51 100644 --- a/net-dialup/rppppoek/files/rppppoek-0.33-panelicon.patch +++ b/net-dialup/rppppoek/files/rppppoek-0.33-panelicon.patch @@ -5,12 +5,12 @@ KActionCollection* actionCollection = new KActionCollection(this); + stat = new KProcess; -+ *stat << "ifconfig" << "ppp0"; ++ *stat << "/sbin/ifconfig" << "ppp0"; + stat->start(KProcess::Block, KProcess::Stdout); -+ if (stat->exitStatus() == 0) { -+ setPixmap(Icon("connect_established")); -+ } else { ++ if (stat->exitStatus()) { + setPixmap(Icon("connect_no")); ++ } else { ++ setPixmap(Icon("connect_established")); + } + start = new KProcess; |