2 # Filename: /etc/init.d/grml-autoconfig
3 # Purpose: basic system configuration and hardware setup for grml system
4 # Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
5 # Bug-Reports: see http://grml.org/bugs/
6 # License: This file is licensed under the GPL v2.
7 ################################################################################
9 # http://wiki.debian.org/LSBInitScripts =>
11 # Provides: grml-autoconfig
12 # Required-Start: $remote_fs
13 # Required-Stop: $remote_fs
15 # Default-Start: S 2 3 4 5
19 # {{{ placeholder functions for restart/reload/stop
20 if [[ $1 == "restart" ]] ; then
21 echo "$0 restart - empty placeholder. Doing nothing but running."
24 if [[ $1 == "force-reload" ]] ; then
25 echo "$0 force-reload - empty placeholder. Doing nothing but running."
28 if [[ $1 == "stop" ]] ; then
29 echo "$0 stop - empty placeholder. Doing nothing but exiting."
34 # {{{ path, signals, umask, zsh, colors
35 export PATH="/bin:/sbin:/usr/bin:/usr/sbin"
37 # Ignore these signals: INT, TERM, SEGV
41 setopt no_nomatch # avoid 'no matches found: ...'
44 # {{{ source main files
45 source /etc/grml/autoconfig # configuration file
46 source /etc/grml/autoconfig.functions # functions
47 source /etc/grml/lsb-functions # helper functions for smart display
50 # {{{ mount important directories
56 # {{{ main grml-autoconfig
57 # make sure symlink /etc/mtab exists, this is usually handled by
58 # /etc/init.d/checkroot.sh but we don't execute this script on the live system
59 if [ -z "$INSTALLED" ] ; then
60 ln -sf /proc/mounts /etc/mtab
63 checkvalue $CONFIG_SYSLOG && config_syslog
65 if checkbootparam 'forensic' ; then
66 ewarn "Bootopion forensic found. Important notice:" ; eend 0
67 ewarn " Do *NOT* boot with something like 'grml forensic ...' but always use 'forensic ...' instead!" ; eend 0
70 checkvalue $CONFIG_LANGUAGE && config_language
72 checkvalue $CONFIG_LOG && config_log
74 checkvalue $CONFIG_HOSTNAME && config_hostname
76 checkvalue $CONFIG_TIME && config_time
78 checkvalue $CONFIG_KERNEL && config_kernel
80 checkvalue $CONFIG_SECUREBOOT && config_secureboot
82 checkvalue $CONFIG_TIMEZONE && config_timezone
84 checkvalue $CONFIG_SWRAID && config_swraid
86 checkvalue $CONFIG_DMRAID && config_dmraid
88 checkvalue $CONFIG_LVM && config_lvm
90 checkvalue $CONFIG_TESTCD && config_testcd
92 checkvalue $CONFIG_BRLTTY && config_brltty
94 checkvalue $CONFIG_ACPI && config_acpi
96 checkvalue $CONFIG_FSTAB && config_fstab
98 checkvalue $CONFIG_CPU && config_cpu
100 checkvalue $CONFIG_SSH && config_ssh
102 checkvalue $CONFIG_VNC && config_vnc
104 checkvalue $CONFIG_PASSWD && config_passwd
106 checkvalue $CONFIG_EXTRACT && config_extract
108 checkvalue $CONFIG_FINDDCSDIR && config_finddcsdir
110 checkvalue $CONFIG_DEBS && config_debs
112 checkvalue $CONFIG_CONFIG && config_config
114 checkvalue $CONFIG_SCRIPTS && config_scripts
116 checkvalue $CONFIG_FINDDCSDIR && config_umount_dcsdir
118 checkvalue $CONFIG_PARTCONF && config_partconf
120 checkvalue $CONFIG_MIXER && config_mixer
122 checkvalue $CONFIG_GPM && config_gpm
124 checkvalue $CONFIG_SERVICES && config_services
126 checkvalue $CONFIG_DEBNET && config_debnet
128 checkvalue $CONFIG_DISPLAY_SSH_FINGERPRINTS && config_display_ssh_fingerprints
130 checkvalue $CONFIG_NETCONFIG && config_netconfig
132 checkvalue $CONFIG_NETSCRIPT && config_netscript
134 checkvalue $CONFIG_CONSOLE && config_console
136 checkvalue $CONFIG_VIRTUALBOX_SHARED_FOLDERS && config_virtualbox_shared_folders
138 checkvalue $CONFIG_VIRTUALBOX_SETUP && config_virtualbox_setup
140 checkvalue $CONFIG_MYPATH && config_mypath
142 checkvalue $CONFIG_DISTRI && config_distri
144 checkvalue $CONFIG_BLANKING && config_blanking
146 checkvalue $CONFIG_DEBOOTSTRAP && config_debootstrap
148 checkvalue $CONFIG_XSTARTUP && config_x_startup
150 checkvalue $CONFIG_EASTEREGG && config_easteregg
153 # {{{ Re-enable signals
159 ## END OF FILE #################################################################
160 # vim:foldmethod=marker