- if [ -f /var/lock/subsys/timezone ]; then
- run_cmd "Unsetting time zone information" rm -f /etc/localtime
- rm -f /var/lock/subsys/timezone
- fi
+ rm -f /var/lock/subsys/timezone >/dev/null 2>&1
+}
+
+disable() {
+ run_cmd "Unsetting time zone information" rm -f /etc/localtime
+}
+
+# return true if FILE1 and FILE2 are identical
+identical() {
+ local crc1 crc2
+ test -f "$1" || return 1
+ test -f "$2" || return 1
+ crc1=$(cksum "$1" | awk '{print $1}')
+ crc2=$(cksum "$2" | awk '{print $1}')
+ [ "$crc1" = "$crc2" ]