From f68fb6b8c362e513f78c7cc2fe058441f23a542c Mon Sep 17 00:00:00 2001 From: Ernesto Castellotti Date: Fri, 10 Feb 2023 16:36:08 +0100 Subject: FS: Always use the original file (immutable /rom squashfs) to set the ONU hardware version (#148) --- _ont/ont-fs-com-gpon-onu-stick-with-mac.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/_ont/ont-fs-com-gpon-onu-stick-with-mac.md b/_ont/ont-fs-com-gpon-onu-stick-with-mac.md index 2c7a116..254ecd5 100644 --- a/_ont/ont-fs-com-gpon-onu-stick-with-mac.md +++ b/_ont/ont-fs-com-gpon-onu-stick-with-mac.md @@ -150,8 +150,12 @@ sfp_i2c -i7 -s "YOUR_VENDOR_ID" ## Changing ONU hardware version (ME 256) ```sh -cp /etc/mibs/data_1g_8q.ini /etc/mibs/data_1g_8q.ini.bak -sed 's/256 0 HWTC 0000000000000/256 0 YOUR_VENDOR_ID YOUR_ONU_VERSION/' -i /etc/mibs/data_1g_8q.ini +sed 's/256 0 HWTC 0000000000000/256 0 YOUR_VENDOR_ID YOUR_ONU_VERSION/' /rom/etc/mibs/data_1g_8q.ini > /etc/mibs/data_1g_8q.ini +``` + +## Restore the default ONU hardware version (ME 256) +```sh +cat /rom/etc/mibs/data_1g_8q.ini > /etc/mibs/data_1g_8q.ini ``` ## Enabling `data_1g_8q_us1280_ds512.ini` OMCI MIB file for 2500 Mbps profiles -- cgit v1.2.3