Re: [Vchanger-users] 'update slots' missing?!
Brought to you by:
jaybus2
|
From: Josh F. <jf...@ja...> - 2022-09-28 12:47:52
|
I have added a bug ticket and uploaded a patch for version 1.0.3 to Sourceforge that fixes this and allows the mount and umount scripts to properly handle quoted strings in the magazine= lines. The script uses the native shell prefix/suffix removal feature of bash, so I think will work on most systems. On 9/27/22 09:23, Marco Gaiarin wrote: > Mandi! Josh Fisher > In chel di` si favelave... > >> Thanks, Marco. I have cleaned up the vchanger-example.conf file, although am >> leaving the quotes on the magazine= line. In that case, the udev script >> needs to handle the quoted value properly. It isn't needed for UUID defined >> magazines, but vchanger itself allows quoted strings, so the udev script >> needs to be able to handle them as well. > Ok, but the helper 'vchanger-genudevrules' does not work with quotes, for > example: > > root@vipve2:~# cat /etc/vchanger/VIPVE2RDX.conf | grep -v "^#" | tr -d " \t" | grep -i "^magazine=" > magazine=UUID:ea70e0c4-8076-4448-9b7e-4bb268a56c18 > magazine=UUID:a667cdf0-828a-4997-90e6-c13b847bd402 > magazine=UUID:ea65e3c5-bced-4949-b8e7-940db56f51b7 > root@vipve2:~# cat /etc/vchanger/vchanger.conf | grep -v "^#" | tr -d " \t" | grep -i "^magazine=" > magazine="uuid:4fcb1422-f15c-4d7a-8a32-a4dcc0af5e00" > > > root@vipve2:~# echo 'magazine=UUID:ea70e0c4-8076-4448-9b7e-4bb268a56c18' | grep -i "^magazine=uuid:" > magazine=UUID:ea70e0c4-8076-4448-9b7e-4bb268a56c18 > root@vipve2:~# echo 'magazine="uuid:4fcb1422-f15c-4d7a-8a32-a4dcc0af5e00"' | grep -i "^magazine=uuid:" > root@vipve2:~# > > I don't know if it is worth to add an '| tr -d '\'\"'' or there's some more > elegant solution... > > > > _______________________________________________ > Vchanger-users mailing list > Vch...@li... > https://lists.sourceforge.net/lists/listinfo/vchanger-users |