Skip to content

Commit e0478e3

Browse files
Changing QProcess command to get Wombat assigned name
1 parent 306db57 commit e0478e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NetworkSettingsWidget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ QString NetworkSettingsWidget::getRaspberryPiType()
174174
void NetworkSettingsWidget::getWombatName()
175175
{
176176
QStringList arguments;
177-
arguments << "-c" << "nmcli -t -f NAME connection show --active | grep 'wombat'";
177+
arguments << "-c" << "nmcli -t -f NAME connection show --active | awk '/-wombat/'";
178178

179179
QProcess *myProcess = new QProcess(this);
180180
myProcess->start("/bin/sh", arguments); // Use /bin/sh or /bin/bash to interpret the command

0 commit comments

Comments
 (0)