sysconf fix
This commit is contained in:
1 parent
e713585579
commit
317b679b56
5 files changed
+3
-7
No files matched your search
@@ -1,8 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
current=$(date +%s -r /usr/share/glib-2.0/schemas/)
|
current=$(date +%s -r /usr/share/glib-2.0/schemas/)
|
||||||
touch /var/lib/ymp/sysconf/glib/update.date
|
|
||||||
last=$(cat /var/lib/ymp/sysconf/glib/update.date)
|
last=$(cat /var/lib/ymp/sysconf/glib/update.date)
|
||||||
if [ "$current" != "$last" ] ; then
|
if [ "$current" != "$last" ] ; then
|
||||||
glib-compile-schemas /usr/share/glib-2.0/schemas/
|
glib-compile-schemas /usr/share/glib-2.0/schemas/
|
||||||
echo "$current" > /var/lib/ymp/sysconf/glib/update.date
|
echo "date +%s -r /usr/share/glib-2.0/schemas/" > /var/lib/ymp/sysconf/glib/update.date
|
||||||
fi
|
fi
|
||||||
@@ -1,5 +1,4 @@
|
|||||||
#!/bin/busybox ash
|
#!/bin/busybox ash
|
||||||
/bin/busybox mkdir -p /var/lib/ymp/sysconf/busybox/
|
|
||||||
if /bin/busybox [ ! -f /var/lib/ymp/sysconf/busybox/postinstall.done ] ; then
|
if /bin/busybox [ ! -f /var/lib/ymp/sysconf/busybox/postinstall.done ] ; then
|
||||||
/bin/busybox --install -s /bin
|
/bin/busybox --install -s /bin
|
||||||
/bin/busybox install /bin/busybox /bin/su
|
/bin/busybox install /bin/busybox /bin/su
|
||||||
|
|||||||
@@ -12,5 +12,5 @@ touch /var/lib/ymp/sysconf/glibc/update.date
|
|||||||
last=$(cat /var/lib/ymp/sysconf/glibc/update.date)
|
last=$(cat /var/lib/ymp/sysconf/glibc/update.date)
|
||||||
if [ "$current" != "$last" ] ; then
|
if [ "$current" != "$last" ] ; then
|
||||||
/bin/locale-gen
|
/bin/locale-gen
|
||||||
echo "$current" > /var/lib/ymp/sysconf/glibc/update.date
|
echo "$(date +%s -r /etc/locale.gen)" > /var/lib/ymp/sysconf/glibc/update.date
|
||||||
fi
|
fi
|
||||||
@@ -1,5 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
mkdir -p /var/lib/ymp/sysconf/eudev/
|
|
||||||
if [ ! -f /var/lib/ymp/sysconf/eudev/postinst.done ] ; then
|
if [ ! -f /var/lib/ymp/sysconf/eudev/postinst.done ] ; then
|
||||||
udevadm hwdb --update
|
udevadm hwdb --update
|
||||||
date > /var/lib/ymp/sysconf/eudev/postinst.done
|
date > /var/lib/ymp/sysconf/eudev/postinst.done
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
mkdir -p /var/lib/ymp/sysconf/initramfs-tools/
|
|
||||||
if [ ! -f /var/lib/ymp/sysconf/initramfs-tools/postinstall.done ] ; then
|
if [ ! -f /var/lib/ymp/sysconf/initramfs-tools/postinstall.done ] ; then
|
||||||
touch /etc/initramfs-tools/modules
|
touch /etc/initramfs-tools/modules
|
||||||
mkdir -p /etc/initramfs-tools/scripts
|
mkdir -p /etc/initramfs-tools/scripts
|
||||||
@@ -8,4 +7,4 @@ for kernel in $(ls /lib/modules) ; do
|
|||||||
if [ ! -f /boot/initrd.img-$kernel ] ; then
|
if [ ! -f /boot/initrd.img-$kernel ] ; then
|
||||||
update-initramfs -c -u -k $kernel
|
update-initramfs -c -u -k $kernel
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
Reference in new issue
Block a user