]> rtime.felk.cvut.cz Git - novaboot.git/commitdiff
Improve IP address error message
authorMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 8 Sep 2015 08:04:16 +0000 (10:04 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 8 Sep 2015 08:04:16 +0000 (10:04 +0200)
novaboot

index 5f2b3ed1ef34ca5a899bc04fb129354a87a551a1..dc1640c0351d95e422e5590ef93a2a7e30142a38 100755 (executable)
--- a/novaboot
+++ b/novaboot
@@ -1088,7 +1088,7 @@ if (defined $uboot) {
            $timeout = 10;
        }
        if ($cmd =~ /\$NB_MYIP/) {
-           my $ip = (grep /inet /, `ip addr show $netif`)[0] || die "Problem determining our IP address";
+           my $ip = (grep /inet /, `ip addr show $netif`)[0] || die "Problem determining IP address of $netif";
            $ip =~ s/\s*inet ([0-9.]*).*/$1/;
            $cmd =~ s/\$NB_MYIP/$ip/g;
        }