Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/post.d
diff options
context:
space:
mode:
authorSebastian Silva <sebastian@somoszucar.org>2013-04-21 20:28:23 (GMT)
committer Sebastian Silva <sebastian@somoszucar.org>2013-04-21 20:28:23 (GMT)
commit804c9b6a2ec3823c2309cdfc03a3d56f6c448760 (patch)
treeb95d4caa61cb81a8998a6d99394d57e4ca148c22 /post.d
parent57d2e6ee08c08fe031307c62a6f6ed4e5e418865 (diff)
Fixes for 0.9
Diffstat (limited to 'post.d')
-rw-r--r--post.d/rc.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/post.d/rc.sh b/post.d/rc.sh
index 9702e36..c91fae3 100644
--- a/post.d/rc.sh
+++ b/post.d/rc.sh
@@ -1,5 +1,6 @@
-grep locale_archive /etc/rc.local >/dev/null || cat >>/etc/rc.local <<EOF
-# locale-archive might be overriden by glibc updates
-locale_archive=/opt/sweets/locales/locale-archive
-[ -e \$locale_archive ] && cp \$locale_archive /usr/lib/locale/
+grep sweets.d /etc/rc.local >/dev/null || cat >>/etc/rc.local <<EOF
+for i in \$(find /etc/sweets.d -type f -printf "%P\n"); do
+ [ /etc/sweets.d/\$i -nt /\$i ] && cp -a /etc/sweets.d/\$i /\$i
+done
EOF
+. /etc/rc.local