Re: [Vchanger-users] 'update slots' missing?!
Brought to you by:
jaybus2
|
From: Marco G. <ga...@li...> - 2022-09-27 13:30:17
|
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... |