Images and git digest #5
The changes I included are minor, but at least end-user visible. First, there’s a command to view SCSI devices:
vyos@vyos:~$ show hardware scsi
[1:0:0:0] disk VMware Virtual disk 1.0 /dev/sda
[2:0:0:0] cd/dvd NECVMWar VMware IDE CDR10 1.00 /dev/sr0
“show hardware scsi detailed” is supported too.
Second, I renamed “show system usb” to “show hardware usb” for consistency with other hardware viewing commands and added “show hardware usb detailed”.
# run show hardware usb
Bus 001 Device 002: ID 0627:0001 Adomax Technology Co., Ltd
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Of course those are simple wrappers to lsscsi and lsusb, nothing fancy.
Build system changes include a fix for trailing slashes in mirror URLs. It annoyed me enough to make a quick fix and simply remove trailing slashes from the URLs given in arguments (I wanted to add a URL joining function for arbitrary number of parts, but this should be good enough).
The thing I’m working on now is removing the remains of sablotron. I verified the XML op mode stuf works with xsltproc, but I’m more likely to just eliminate XML from there for now and add simple formatted output. If XML was used consistently throughout the system, it would be cool, but it is not, and also it’s generated not in the best way, like this:
print $fh " <pkts>$pkts</pkts>n";
so it needs at least heavy refactoring anyway.