fff-web-ui: reconfigure port mode without reboot
A full reboot is not required for changing the port mode. The port mode is configured dynamically using configurenetwork, which can be launched after the port mode has been changed. Fixes: #107 Signed-off-by: Fabian Bläse <fabian@blaese.de>
This commit is contained in:
parent
57408f5dfb
commit
8879c5ec0d
|
@ -9,8 +9,8 @@ if [ "$REQUEST_METHOD" = "POST" ] ; then
|
|||
echo "ETHMODE=\"${POST_mode}\" # set via WebUI" >> /etc/network.config
|
||||
sed -i '/^FORCEPARSE/d' /etc/network.config
|
||||
echo "FORCEPARSE='2'" >> /etc/network.config
|
||||
do_reboot=1
|
||||
MSG='<span class="green">Port Modus geändert! Router startet neu...</span>'
|
||||
do_reconfigure=1
|
||||
MSG='<span class="green">Port Modus wird geändert!</span>'
|
||||
fi
|
||||
if [ "$POST_change_twoport" != "" ] ; then
|
||||
sed -i '/^.*# set via WebUI/d' /etc/network.config
|
||||
|
@ -18,8 +18,8 @@ if [ "$REQUEST_METHOD" = "POST" ] ; then
|
|||
echo "LAN1MODE=\"${POST_mode1}\" # set via WebUI" >> /etc/network.config
|
||||
sed -i '/^FORCEPARSE/d' /etc/network.config
|
||||
echo "FORCEPARSE='2'" >> /etc/network.config
|
||||
do_reboot=1
|
||||
MSG='<span class="green">Port Modus geändert! Router startet neu...</span>'
|
||||
do_reconfigure=1
|
||||
MSG='<span class="green">Port Modus wird geändert!</span>'
|
||||
fi
|
||||
fi
|
||||
|
||||
|
@ -182,7 +182,6 @@ format_port() {
|
|||
|
||||
Wenn diese Einstellung verändert wird, wird eine evtl. vorhandene manuelle Netzwerkkonfiguration in der
|
||||
<tt>/etc/config/network</tt> überschrieben.<br />
|
||||
Anschließend wird der Router neugestartet.
|
||||
</td></tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
|
@ -228,7 +227,6 @@ format_port() {
|
|||
|
||||
Wenn diese Einstellung verändert wird, wird eine evtl. vorhandene manuelle Netzwerkkonfiguration in der
|
||||
<tt>/etc/config/network</tt> überschrieben.<br />
|
||||
Anschließend wird der Router neugestartet.
|
||||
</td></tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
|
@ -239,7 +237,7 @@ format_port() {
|
|||
<%in /www/include/footer %>
|
||||
<%
|
||||
# write
|
||||
if [ "$do_reboot" = "1" ] ; then
|
||||
reboot
|
||||
if [ "$do_reconfigure" = "1" ] ; then
|
||||
configurenetwork
|
||||
fi
|
||||
%>
|
||||
|
|
Loading…
Reference in New Issue
Block a user