base-files: add mtd_get_mac_encrypted_arcadyan function
authorMikhail Zhilkin <csharper2005@gmail.com>
Tue, 12 Jul 2022 14:52:04 +0000 (14:52 +0000)
committerChristian Marangi <ansuelsmth@gmail.com>
Fri, 19 Aug 2022 12:41:14 +0000 (14:41 +0200)
commit12c971bc26ac0ff04257bc475fff6fa68068c6c0
treedb120dce89aa8683a5247a30065a3cf30c7f3bd2
parent9c8605dee238cdf52e88b6a1aa64d5b7bf5dd846
base-files: add mtd_get_mac_encrypted_arcadyan function

Some Arcadyan devices (e.g. MTS WG430223) keep their config in encrypted
mtd. This adds mtd_get_mac_encrypted_arcadyan() function to get the MAC
address from the encrypted partition. Function uses uencrypt utility for
decryption (and openssl if the uencrypt wasn't found).

Signed-off-by: Mikhail Zhilkin <csharper2005@gmail.com>
package/base-files/files/lib/functions/system.sh