Last change
on this file was
5115,
checked in by hectorgh, 4 years ago
|
disabling ntp in clients
|
-
Property svn:executable set to
*
|
File size:
667 bytes
|
Rev | Line | |
---|
[66] | 1 | #!/bin/bash |
---|
| 2 | |
---|
| 3 | set -e |
---|
| 4 | |
---|
| 5 | |
---|
| 6 | |
---|
| 7 | |
---|
| 8 | if [ "$1" = "configure" ] ; then |
---|
| 9 | |
---|
[5115] | 10 | # Disabling ntp in clients |
---|
| 11 | |
---|
| 12 | PKG="lliurex-artwork-defaults-client" |
---|
| 13 | ORIGINAL_FILE="/etc/init.d/ntp" |
---|
| 14 | NEW_DIVERTED_FILE="/etc/init.d/ntp.diverted" |
---|
| 15 | LLIUREX_FILE="/bin/true" |
---|
| 16 | |
---|
| 17 | if [ ! -L "$ORIGINAL_FILE" ]; then |
---|
| 18 | |
---|
| 19 | systemctl stop ntp || true |
---|
| 20 | dpkg-divert --add --package ${PKG} --rename --divert "$NEW_DIVERTED_FILE" "$ORIGINAL_FILE" |
---|
| 21 | ln -s "$LLIUREX_FILE" "$ORIGINAL_FILE" |
---|
| 22 | |
---|
| 23 | fi |
---|
| 24 | |
---|
| 25 | |
---|
[66] | 26 | #update dconf database, as we droped new settings |
---|
| 27 | dconf update |
---|
| 28 | |
---|
| 29 | #gconf trigger, for those settings still using gconf |
---|
| 30 | [ -x /usr/bin/update-gconf-defaults ] && /usr/bin/update-gconf-defaults |
---|
| 31 | |
---|
[1729] | 32 | |
---|
| 33 | |
---|
[1846] | 34 | |
---|
[66] | 35 | fi |
---|
| 36 | |
---|
| 37 | #DEBHELPER# |
---|
| 38 | |
---|
| 39 | exit 0 |
---|
| 40 | |
---|
Note: See
TracBrowser
for help on using the repository browser.