]> git.pld-linux.org Git - projects/rc-scripts.git/blame - rc.d/rc.init
- added support for selecting macvlan mode
[projects/rc-scripts.git] / rc.d / rc.init
CommitLineData
568b1679 1#!/bin/sh
568b1679
ER
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.
26eval exec "$4"
This page took 0.396741 seconds and 4 git commands to generate.