0551c665cb
Some of the code used TRUE instead of true which did not compile for Debian. These instances were changed to true. Some #define constants generated narrowing errors because their values are negative in a 32 bit integer. These values were explicitly casted to int in the case statements causing the errors. Story: 2009101 Task: 43426 Signed-off-by: Tracey Bogue <tracey.bogue@windriver.com> Change-Id: Iffc4305660779010969e0c506d4ef46e1ebc2c71
24 lines
736 B
Bash
24 lines
736 B
Bash
#!/bin/sh
|
|
set -e
|
|
|
|
#DEBHELPER#
|
|
|
|
case "$1" in
|
|
configure)
|
|
# Replace the default hwclock.sh with our copy
|
|
if [ -e /etc/init.d/hwclock.sh ]; then
|
|
mv -f /etc/init.d/hwclock.sh /etc/init.d/hwclock.sh.dpkg-bak
|
|
fi
|
|
cp -a /usr/share/mtce/hwclock.sh /etc/init.d/hwclock.sh
|
|
# Replace the default hwclock.service with our copy
|
|
if [ -e /lib/systemd/system/hwclock.service ]; then
|
|
mv -f /lib/systemd/system/hwclock.service /lib/systemd/system/hwclock.service.bak
|
|
fi
|
|
cp -a /usr/share/mtce/hwclock.service /lib/systemd/system/hwclock.service
|
|
;;
|
|
*)
|
|
echo "mtce postinst called with an unknown argument \`$1'" >&2
|
|
exit 1
|
|
;;
|
|
esac
|