mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-08-04 08:57:44 +00:00
libgtk2: add init script to create /etc/gtk-2.0/gdk-pixbuf.loaders
It would be nicer to do this at compile time, but then we would need to compile libgtk2 for the host as well.
This commit is contained in:
parent
e528d99d96
commit
ccb02b009b
19
package/libgtk2/S26libgtk2
Normal file
19
package/libgtk2/S26libgtk2
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
# run pgdk-pixbuf-query-loaders if needed
|
||||||
|
|
||||||
|
FILE=/etc/gtk-2.0/gdk-pixbuf.loaders
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
start|"")
|
||||||
|
if [ ! -f "$FILE" ] ; then
|
||||||
|
/usr/bin/gdk-pixbuf-query-loaders > "$FILE"
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
stop)
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "Usage: $0 {start|stop}" >&2
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
@ -123,3 +123,7 @@ LIBGTK2_CONF_OPT += --disable-cups
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
$(eval $(call AUTOTARGETS,package,libgtk2))
|
$(eval $(call AUTOTARGETS,package,libgtk2))
|
||||||
|
|
||||||
|
$(LIBGTK2_HOOK_POST_INSTALL):
|
||||||
|
$(INSTALL) -m 755 package/libgtk2/S26libgtk2 $(TARGET_DIR)/etc/init.d/
|
||||||
|
touch $@
|
||||||
|
Loading…
x
Reference in New Issue
Block a user