slitaz-arm rev 110

Add /etc/init.d/post-install.sh
author Christophe Lincoln <pankso@slitaz.org>
date Fri Apr 18 15:17:49 2014 +0200 (2014-04-18)
parents a3d94fe8d0c0
children 97ec3b4f032d
files rootfs/etc/init.d/post-install.sh rootfs/etc/init.d/rcS rootfs/etc/init.d/shutdown.sh
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/rootfs/etc/init.d/post-install.sh	Fri Apr 18 15:17:49 2014 +0200
     1.3 @@ -0,0 +1,34 @@
     1.4 +#!/bin/sh
     1.5 +#
     1.6 +# /etc/init.d/post-install.sh: SliTaz ARM post installation script
     1.7 +#
     1.8 +# Copyright (C) 2014 SliTaz ARM - BSD License
     1.9 +#
    1.10 +. /lib/libtaz.sh
    1.11 +
    1.12 +# Exit fbs
    1.13 +if [ -f "/fbs.fifo" ]; then
    1.14 +	echo "exit" > /fbs.fifo && rm -f /fbs.fifo
    1.15 +	usleep 500000
    1.16 +fi
    1.17 +
    1.18 +# Welcome/About
    1.19 +slitaz-config about_post_install
    1.20 +
    1.21 +[ -s /etc/keymap.conf ] || tazkeymap
    1.22 +#[ -s /etc/locale.conf ] || tazlocale
    1.23 +
    1.24 +slitaz-config root_passwd
    1.25 +slitaz-config add_user
    1.26 +#dialog --yesno "Do you wish to setup a network connection ?"
    1.27 +#slitaz-config network_connection
    1.28 +
    1.29 +# No post install on next boot.
    1.30 +echo "$ARCH" > /var/lib/slitaz/post-install
    1.31 +
    1.32 +# Run packages post_install since when we generate a distro from
    1.33 +# an i486 machine we can't chroot and run ARM binaries. If we don't
    1.34 +# run some post_install we will miss gtk icon, pango modules, etc...
    1.35 +clear && newline
    1.36 +colorize 33 "Reconfiguring all SliTaz packages..."
    1.37 +spk reconf --all
     2.1 --- a/rootfs/etc/init.d/rcS	Fri Apr 18 14:35:51 2014 +0200
     2.2 +++ b/rootfs/etc/init.d/rcS	Fri Apr 18 15:17:49 2014 +0200
     2.3 @@ -59,22 +59,9 @@
     2.4  syslogd -s ${SYSLOGD_SIZE} && klogd
     2.5  status
     2.6  
     2.7 -# Run post install configs on first boot 
     2.8 -# /etc/init.d/post-install.sh --> into a script ?
     2.9 +# Run post install configs on first boot
    2.10  if [ ! -f "/var/lib/slitaz/post-install" ]; then
    2.11 -	colorize 33 "Running post install configs..."
    2.12 -	mkdir -p /var/lib/slitaz
    2.13 -	echo "$ARCH" > /var/lib/slitaz/post-install
    2.14 -	[ -s /etc/keymap.conf ] || tazkeymap
    2.15 -	#[ -s /etc/locale.conf ] || tazlocale
    2.16 -	slitaz-config root_passwd
    2.17 -	slitaz-config add_user
    2.18 -	[ -x "/var/lib/post-install.sh" ] && /var/lib/post-install.sh
    2.19 -	# Run packages post_install since when we generate a distro from
    2.20 -	# an i486 machine we can't chroot and run ARM binaries. If we don't
    2.21 -	# run some post_install we will miss gtk icon, pango modules, etc...
    2.22 -	colorize 33 "Configuring all SliTaz packages..."
    2.23 -	spk reconf --all
    2.24 +	/etc/init.d/post-install.sh
    2.25  fi
    2.26  
    2.27  # Load all modules from config file
     3.1 --- a/rootfs/etc/init.d/shutdown.sh	Fri Apr 18 14:35:51 2014 +0200
     3.2 +++ b/rootfs/etc/init.d/shutdown.sh	Fri Apr 18 15:17:49 2014 +0200
     3.3 @@ -2,7 +2,7 @@
     3.4  #
     3.5  # /etc/init.d/shutdown.sh: System shutdown or reboot script
     3.6  #
     3.7 -# Copyright (C) 2012 SliTaz ARM - BSD License
     3.8 +# Copyright (C) 2012-2014 SliTaz ARM - BSD License
     3.9  #
    3.10  . /lib/libtaz.sh
    3.11  . /etc/rcS.conf