slitaz-arm diff rootfs/etc/init.d/post-install.sh @ 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 | |
children | c34a9ff05fd1 |
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