]> TLD Linux GIT Repositories - rc-scripts.git/blob - rc.d/rc.init
- disable lock checks (happens on LUKS2 and fails during system boot)
[rc-scripts.git] / rc.d / rc.init
1 #!/bin/sh
2 #
3 # If this script is intalled as /etc/rc.d/rc.init,
4 # it is executed by init(8) for every program it
5 # wants to spawn like this:
6 #
7 # /bin/sh /etc/rc.d/rc.init <id> <level> <action> <process>
8 #
9 # It can be used to set the default umask and ulimit
10 # of all processes. See initscript(5) for more details.
11
12 [ -r /etc/sysconfig/i18n ] && . /etc/sysconfig/i18n
13
14 [ -n "$LANG" ] && export LANG || unset LANG
15 [ -n "$LC_CTYPE" ] && export LC_CTYPE || unset LC_CTYPE
16 [ -n "$LC_COLLATE" ] && export LC_COLLATE || unset LC_COLLATE
17 [ -n "$LC_MESSAGES" ] && export LC_MESSAGES || unset LC_MESSAGES
18 [ -n "$LC_NUMERIC" ] && export LC_NUMERIC || unset LC_NUMERIC
19 [ -n "$LC_MONETARY" ] && export LC_MONETARY || unset LC_MONETARY
20 [ -n "$LC_TIME" ] && export LC_TIME || unset LC_TIME
21 [ -n "$LC_ALL" ] && export LC_ALL || unset LC_ALL
22 [ -n "$LANGUAGE" ] && export LANGUAGE || unset LANGUAGE
23 [ -n "$LINGUAS" ] && export LINGUAS || unset LINGUAS
24
25 # Execute the program.
26 eval exec "$4"