slitaz-arm rev 98
Clean init.d scripts
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Apr 13 01:16:31 2014 +0200 (2014-04-13) |
parents | 2fee3c2b3980 |
children | 344d66740f8e |
files | rootfs/etc/init.d/local.sh rootfs/etc/init.d/shutdown.sh rootfs/etc/init.d/system.sh |
line diff
1.1 --- a/rootfs/etc/init.d/local.sh Sun Apr 13 01:07:31 2014 +0200 1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 1.3 @@ -1,6 +0,0 @@ 1.4 -#!/bin/sh 1.5 -# 1.6 -# /etc/init.d/local.sh: Local startup commands 1.7 -# 1.8 -# All commands here will be executed at boot time. 1.9 -#
2.1 --- a/rootfs/etc/init.d/shutdown.sh Sun Apr 13 01:07:31 2014 +0200 2.2 +++ b/rootfs/etc/init.d/shutdown.sh Sun Apr 13 01:16:31 2014 +0200 2.3 @@ -8,16 +8,12 @@ 2.4 . /etc/rcS.conf 2.5 2.6 # Messages 2.7 -clear && newline 2.8 +clear 2.9 boldify "System is going down for reboot or halt..." 2.10 +newline 2.11 colorize 32 $(uptime) 2.12 newline 2.13 2.14 -# Store last alsa settings 2.15 -if [ -x /usr/sbin/alsactl ]; then 2.16 - alsactl store 2.17 -fi 2.18 - 2.19 # Stop all daemons started at boot time 2.20 if [ "$RUN_DAEMONS" ]; then 2.21 colorize 33 "Stopping all daemons..."
3.1 --- a/rootfs/etc/init.d/system.sh Sun Apr 13 01:07:31 2014 +0200 3.2 +++ b/rootfs/etc/init.d/system.sh Sun Apr 13 01:16:31 2014 +0200 3.3 @@ -15,13 +15,8 @@ 3.4 3.5 # Sound configuration: restore or init 3.6 if [ -d "/proc/asound" ] && [ -x "/usr/sbin/alsactl" ]; then 3.7 - if [ -s "/var/lib/alsa/asound.state" ]; then 3.8 - echo -n "Restoring sound configuration..." 3.9 - alsactl restore; status 3.10 - else 3.11 - echo -n "Initializing sound card..." 3.12 - alsactl init 3.13 - fi 3.14 + echo "Initializing sound card..." 3.15 + alsactl init 3.16 fi 3.17 3.18 # Locale config