+ my @dontsave = qw(ENABLE_LAN_AUTONEG ENABLE_LAN_100 ENABLE_LAN_FDUPLEX GATEWAY
+ IP_ADDRESS NETMASK TFTP_FIRMWARE_FILE TFTP_ADDR_FIRMWARE ENABLE_DHCP);
+
+ open (SAVEFILE, ">${save}") || die "Error opening save-file: $!\n";
+ foreach my $ts (@fw_vars) {
+ next if (grep(/^${ts}$/, @dontsave));
+
+ my $phash = _getprop($ts)->{RESP}->{PROPLIST}->{PROP};
+ next if ($phash->{PERMS} ne 'RW');
+
+ print SAVEFILE "${ts}=".$phash->{VAL}."\n";
+ }
+ close(SAVEFILE);