- 25 Jun, 2019 2 commits
-
-
Adam Wujek authored
If the build or image is broken and sdb-read is missing don't try to overwrite hwinfo Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Forward messages from scripts running before syslog is available to the kernel log. Before these messages were printed only to the console. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
- 07 Jul, 2016 2 commits
-
-
Adam Wujek authored
When switch's firmware with buildroot older than 2016.02 was updated via copying wrs-firmware.tar with buildroot at least 2016.02 to the /update partition, then hwinfo in the flash was overwriten. Such behaviour was caused by crashing during execution of /wr/bin/sdb-read. Crashing sdb-read caused the following if's condition from the file /etc/init.d/hwinfo to be false. if /wr/bin/sdb-read /dev/mtd5ro > /dev/null; then This triggered later overwrite of hwinfo partition. /wr/bin/sdb-read was crashing because during update the binary /wr/bin/sdb-read was called from just extracted firmware. Problem pops up when libraries required by sdb-read are in the different versions in the old and the new firmware. Unfortunatelly, this problem cannot be easily solved, since we cannot change the update procedure in already installed firmware (the one that is performing update). Implemented solution does the following: --change the name of /wr/etc/sdb-for-dataflash to /wr/etc/sdb-for-dataflash.bin by this /etc/init.d/hwinfo script exits with an error without modification to the hwinfo partition. --rename link /etc/rcS/S90hwinfo to /etc/rcS/S10hwinfo, which will trigger update of hwinfo partition earlier during the boot. --restart switch after update of hwinfo in the flash --remove calls of /etc/init.d/hwinfo during the update Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
- 28 Aug, 2015 1 commit
-
-
Adam Wujek authored
Before at the beginnig of the hwinfo script, hwinfo_error was written to the status file. Then if there was success or warning then update was written to status file. Snmpd could read error even there was no error. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
- 17 Jun, 2015 1 commit
-
-
Adam Wujek authored
Move: /etc/init.d/[SK]??<name> to /etc/init.d/<name> Then create symlinks in /etc/init.d/rcS/[SK]??* to all files that previously were /etc/init.d/[SK]??* With exception of monit since monit will start soon from init. Rename all occurences of changed files. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
- 21 Apr, 2015 1 commit
-
-
Adam Wujek authored
To be used by SNMP. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
- 17 Oct, 2014 1 commit
-
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- 30 Sep, 2014 1 commit
-
-
Alessandro Rubini authored
The binary file commited here is the same as in binaries/: it is generated as described in commit 7c9f0d35. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-