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:44:35 +0000 (14:44 +0200)
commit290ace2fe6ffbbf22c841e10d79267871f4d5748
tree7738b0c1cf510f4fb061a35b83a1887704da8853
parentd94a28f7d264ca8286b448a70e0311fa0051603a
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>
(cherry picked from commit 12c971bc26ac0ff04257bc475fff6fa68068c6c0)
package/base-files/files/lib/functions/system.sh