GUI network fixes

This commit is contained in:
bergware
2023-05-27 11:09:53 +02:00
parent c53e295074
commit ad2a1f85aa
2 changed files with 5 additions and 3 deletions
+3 -2
View File
@@ -206,6 +206,7 @@ function prepareSettings(form) {
var protocol = $(form).find('select[name="PROTOCOL:0"]').val() || 'ipv4';
if (protocol != 'ipv4') $(form).find('input[name^="DNS6_SERVER"]').val('_(Obtaining DNSv6 server)_...');
}
setTimeout(refresh,25000);
return true;
}
function selectProtocol(form,port,index) {
@@ -391,8 +392,8 @@ watchDHCP.on('message', function(data) {
var form = $('form[name="'+id[0]+'_settings"]');
var key = id[2].split('=');
switch (id[1]) {
case 'I': form.find('input[name="'+key[0]+'"]').val(key[1]); break;
case 'S': form.find('select[name="'+key[0]+'"]').val(key[1]); break;
case 'I': form.find('input[name="'+key[0].replace('-','_')+'"]').val(key[1]); break;
case 'S': form.find('select[name="'+key[0].replace('-','_')+'"]').val(key[1]); break;
}
}
});
+2 -1
View File
@@ -1,5 +1,5 @@
#!/bin/bash
SERVICES="sshd nginx avahidaemon samba rpc nfsd ntpd"
SERVICES="sshd avahidaemon samba rpc nfsd ntpd nginx"
for cmd in $SERVICES; do
[[ $cmd == $1 ]] && option=renew || option=reload
@@ -7,3 +7,4 @@ for cmd in $SERVICES; do
/etc/rc.d/rc.$cmd $option >/dev/null 2>&1
fi
done
exit 0