Commit eb27aa6e authored by José Luis  Gutiérrez's avatar José Luis Gutiérrez Committed by Alessandro Rubini

www: ptp: clock accuracy and clock class saved to ppsi-pre.conf

These values are now read and saved in ppsi-pre.conf since ppsi.conf is
now regenerated after everyboot.
parent 3f8a8652
......@@ -57,6 +57,11 @@
$section = "WRS_FORMS";
$subsection = "CONFIG_PPSI";
$_SESSION["WRS_FORMS"]["CONFIG_PPSI"][CONFIG_PPSI_00]["value"]=
shell_exec("cat /wr/etc/ppsi-pre.conf | grep clock-class | awk '{print $2}'");
$_SESSION["WRS_FORMS"]["CONFIG_PPSI"][CONFIG_PPSI_01]["value"]=
shell_exec("cat /wr/etc/ppsi-pre.conf | grep clock-accuracy | awk '{print $2}'");;
print_form($section, $subsection, $formatID, $class, $infoname, $format);
wrs_ptp_configuration();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment