]> git.ipfire.org Git - people/arne_f/network.git/blobdiff - functions.util
network: Updated stp framework.
[people/arne_f/network.git] / functions.util
index 104316ff744a165f8d83273bf73ebabfe34ec36f..8b207870c8b5f4786800063bec578555eb1ce3b5 100644 (file)
@@ -405,3 +405,13 @@ function process_kill() {
                done
        done
 }
+
+function dec() {
+       local hex=${1}
+
+       if [ "${hex:0:2}" != "0x" ]; then
+               hex="0x${hex}"
+       fi
+
+       printf "%d\n" "${hex}"
+}