Project

General

Profile

Actions

Bug #564

closed

Static configs are not saved and reused

Added by Hammel almost 8 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Urgent
Assignee:
Start date:
16 Jan 2017
Due date:
% Done:

100%

Estimated time:
Severity:
02 - High

Description

If you set the static configs (netmask, gateway, etc.), save and exit the settings are not displayed the next time you enter the UI.

Actions #1

Updated by Hammel over 5 years ago

  • Target version changed from 0.12.0 to 1.1.0 - Upgrades
Actions #2

Updated by Hammel over 4 years ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 30

This is not completely accurate. Everything is retrieved except the DNS fields, which are properly set in /etc/resolv.conf when the page is saved. So this is a load/display update problem with DNS only.

Actions #3

Updated by Hammel over 4 years ago

Looked like an easy fix: pncGetNameserver() was testing for !=NULL where it should have been testing for ==NULL. Fix that and the DNS entries should show up.

That is, until I realized that /etc/resolv.conf is being stored in volatile directories, re: /var/run/resolv.conf. This was done on purpose because of an old Busybox problem. Now I need to see if I can fix that by not modifying /etc/resolv.conf in S00dev, then checking were resolv.conf really is and determining what steps should be taken to deal with a disappearing (on each reboot) resolv.conf.

Actions #4

Updated by Hammel over 4 years ago

  • % Done changed from 30 to 50

Looks like I could just remove /etc/resolv.conf from S00dev. Both static config and dhcp handling work fine if the file is not there to start with.

Removing lines from S00dev related to resolv.conf and letting the system start without the file.

Actions #5

Updated by Hammel over 4 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 50 to 100

Fixed, both in S00dev (pibox dev platform) and in pnc.

Tested on hardware. Committed and pushed.

Closing issue.

Actions

Also available in: Atom PDF