slitaz-modular view initramfs/etc/init.d/local.sh @ rev 173

initramfs: Update initramfs.list. Add changes need for init script to work.
author Christopher Rogers <slaxemulator@gmail.com>
date Thu Jul 19 11:49:58 2012 +0000 (2012-07-19)
parents 2f513d33aeee
children
line source
1 #!/bin/sh
2 # /etc/init.d/local.sh - Local startup commands.
3 #
4 # All commands here will be executed at boot time.
5 #
6 . /etc/init.d/rc.functions
7 . /etc/slitaz/slitaz.conf
8 echo "Starting local startup commands... "
10 [ -d /etc/pango ] || mkdir -p /etc/pango
11 [ -d /etc/gtk-2.0 ] || mkdir -p /etc/gtk-2.0
12 [ -x /usr/bin/pango-querymodules ] && /usr/bin/pango-querymodules > /etc/pango/pango.modules
13 [ -x /usr/bin/gdk-pixbuf-query-loaders ] && /usr/bin/gdk-pixbuf-query-loaders > /etc/gtk-2.0/gdk-pixbuf.loaders
14 [ -x /usr/bin/update-mime-database ] && update-mime-database /usr/share/mime
16 if [ -x /usr/bin/glib-compile-schemas ] && [ -d /usr/share/glib-2.0/schemas ]; then
17 glib-compile-schemas /usr/share/glib-2.0/schemas
18 fi
19 if [ -f /etc/local-mirror.conf ]; then
20 . /etc/local-mirror.conf
21 if [ ! $(grep -l "$PKGDIR" $LOCALSTATE/mirror) ]; then
22 [ -d $PKGDIR ] && echo "$PKGDIR" > $LOCALSTATE/mirror
23 fi
24 fi
26 if [ ! -d /home/slitaz/cooking ]; then
27 mkdir -p /home/slitaz/cooking
28 if [ -d /repos/flavors ]; then
29 ln -sf /repos/flavors /home/slitaz/cooking/flavors
30 fi
31 if [ -d /packages ]; then
32 ln -sf /packages /home/slitaz/cooking/packages
33 fi
34 fi
35 #[ -x /usr/bin/setup-live ] && /usr/bin/setup-live