diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/vyatta_net_name | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/vyatta_net_name b/scripts/vyatta_net_name index 1d90d9f3..ff8b9bf5 100755 --- a/scripts/vyatta_net_name +++ b/scripts/vyatta_net_name @@ -111,7 +111,9 @@ finish () # config file, if it exists, so it doesn't rename the interface # out from under us. Remove the subject line plus the comment # line above it - sed -i -e "/^#/N;/${address}/d" $udev_persistent_net_rules_file + if [ -e $udev_persistent_net_rules_file ]; then + sed -i -e "/^#/N;/${address}/d" $udev_persistent_net_rules_file + fi exit $? } |