summaryrefslogtreecommitdiff
path: root/packages/system/openrc/etc/conf.d
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2014-03-09 18:21:33 +0100
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2014-03-09 18:21:33 +0100
commitfee076399af853c5c751a7c901b673c4f7c01e97 (patch)
treed37074ae22670708b7ef47430d38a46a156ef6a0 /packages/system/openrc/etc/conf.d
parent96afd7fc069999de0d3a28ad887a42ee62e5abda (diff)
downloadembtoolkit-fee076399af853c5c751a7c901b673c4f7c01e97.tar.gz
embtoolkit-fee076399af853c5c751a7c901b673c4f7c01e97.tar.bz2
embtoolkit-fee076399af853c5c751a7c901b673c4f7c01e97.tar.xz
RootFS: move openRC under packages
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
Diffstat (limited to 'packages/system/openrc/etc/conf.d')
-rw-r--r--packages/system/openrc/etc/conf.d/bootmisc10
-rw-r--r--packages/system/openrc/etc/conf.d/dmesg3
-rw-r--r--packages/system/openrc/etc/conf.d/hostname2
-rw-r--r--packages/system/openrc/etc/conf.d/killprocs3
-rw-r--r--packages/system/openrc/etc/conf.d/localmount3
-rw-r--r--packages/system/openrc/etc/conf.d/modules23
-rw-r--r--packages/system/openrc/etc/conf.d/netmount40
-rw-r--r--packages/system/openrc/etc/conf.d/network71
-rw-r--r--packages/system/openrc/etc/conf.d/staticroute8
-rw-r--r--packages/system/openrc/etc/conf.d/udhcpc5
-rw-r--r--packages/system/openrc/etc/conf.d/urandom5
11 files changed, 173 insertions, 0 deletions
diff --git a/packages/system/openrc/etc/conf.d/bootmisc b/packages/system/openrc/etc/conf.d/bootmisc
new file mode 100644
index 0000000..d79706c
--- /dev/null
+++ b/packages/system/openrc/etc/conf.d/bootmisc
@@ -0,0 +1,10 @@
+# List of /tmp directories we should clean up
+clean_tmp_dirs="/tmp"
+
+# Should we wipe the tmp paths completely or just selectively remove known
+# locks / files / etc... ?
+wipe_tmp="YES"
+
+# Write the initial dmesg log into /var/log/dmesg after boot
+# This may be useful if you need the kernel boot log afterwards
+log_dmesg="YES"
diff --git a/packages/system/openrc/etc/conf.d/dmesg b/packages/system/openrc/etc/conf.d/dmesg
new file mode 100644
index 0000000..cd4b8b3
--- /dev/null
+++ b/packages/system/openrc/etc/conf.d/dmesg
@@ -0,0 +1,3 @@
+# Sets the level at which logging of messages is done to the
+# console. See dmesg(1) for more info.
+dmesg_level="1"
diff --git a/packages/system/openrc/etc/conf.d/hostname b/packages/system/openrc/etc/conf.d/hostname
new file mode 100644
index 0000000..ebdc8f1
--- /dev/null
+++ b/packages/system/openrc/etc/conf.d/hostname
@@ -0,0 +1,2 @@
+# Set to the hostname of this machine
+hostname="localhost"
diff --git a/packages/system/openrc/etc/conf.d/killprocs b/packages/system/openrc/etc/conf.d/killprocs
new file mode 100644
index 0000000..0cf10d0
--- /dev/null
+++ b/packages/system/openrc/etc/conf.d/killprocs
@@ -0,0 +1,3 @@
+# If you wish to pass any options to killall5 during shutdown,
+# you should do so here.
+killall5_opts=""
diff --git a/packages/system/openrc/etc/conf.d/localmount b/packages/system/openrc/etc/conf.d/localmount
new file mode 100644
index 0000000..e3361da
--- /dev/null
+++ b/packages/system/openrc/etc/conf.d/localmount
@@ -0,0 +1,3 @@
+# Stop the unmounting of certain points.
+# This could be useful for some NFS related work.
+#no_umounts="/dir1:/var/dir2"
diff --git a/packages/system/openrc/etc/conf.d/modules b/packages/system/openrc/etc/conf.d/modules
new file mode 100644
index 0000000..a062a62
--- /dev/null
+++ b/packages/system/openrc/etc/conf.d/modules
@@ -0,0 +1,23 @@
+# You can define a list modules for a specific kernel version,
+# a released kernel version, a main kernel version or just a list.
+# The most specific versioned variable will take precedence.
+#modules_2_6_23_gentoo_r5="ieee1394 ohci1394"
+#modules_2_6_23="tun ieee1394"
+#modules_2_6="tun"
+#modules_2="ipv6"
+#modules="ohci1394"
+
+# You can give modules a different name when they load - the new name
+# will also be used to pick arguments below.
+#modules="dummy:dummy1"
+
+# Give the modules some arguments if needed, per version if necessary.
+# Again, the most specific versioned variable will take precedence.
+#module_ieee1394_args="debug"
+#module_ieee1394_args_2_6_23_gentoo_r5="debug2"
+#module_ieee1394_args_2_6_23="debug3"
+#module_ieee1394_args_2_6="debug4"
+#module_ieee1394_args_2="debug5"
+
+# You should consult your kernel documentation and configuration
+# for a list of modules and their options.
diff --git a/packages/system/openrc/etc/conf.d/netmount b/packages/system/openrc/etc/conf.d/netmount
new file mode 100644
index 0000000..fc19fd4
--- /dev/null
+++ b/packages/system/openrc/etc/conf.d/netmount
@@ -0,0 +1,40 @@
+# You will need to set the dependencies in the netmount script to match
+# the network configuration tools you are using. This should be done in
+# this file by following the examples below, and not by changing the
+# service script itself.
+#
+# Each of these examples is meant to be used separately. So, for
+# example, do not set rc_need to something like "net.eth0 dhcpcd".
+#
+# If you are using newnet and configuring your interfaces with static
+# addresses with the network script, you should use this setting.
+#
+#rc_need="network"
+#
+# If you are using oldnet, you must list the specific net.* services you
+# need.
+#
+# This example assumes all of your netmounts can be reached on
+# eth0.
+#
+#rc_need="net.eth0"
+#
+# This example assumes some of your netmounts are on eth1 and some
+# are on eth2.
+#
+#rc_need="net.eth1 net.eth2"
+#
+# If you are using a dynamic network management tool like
+# networkmanager, dhcpcd in standalone mode, wicd, badvpn-ncd, etc, to
+# manage the network interfaces with the routes to your netmounts, you
+# should list that tool.
+#
+#rc_need="networkmanager"
+#rc_need="dhcpcd"
+#rc_need="wicd"
+#
+# The default setting is designed to be backward compatible with our
+# current setup, but you are highly discouraged from using this. In
+# other words, please change it to be more suited to your system.
+#
+rc_need="net"
diff --git a/packages/system/openrc/etc/conf.d/network b/packages/system/openrc/etc/conf.d/network
new file mode 100644
index 0000000..3548077
--- /dev/null
+++ b/packages/system/openrc/etc/conf.d/network
@@ -0,0 +1,71 @@
+# Assign static IP addresses and run custom scripts per interface.
+# Seperate commands with ;
+# Prefix with ! to run a shell script.
+# Use \$int to represent the interface
+#ifconfig_eth0="192.168.0.10 netmask 255.255.255.0"
+
+# You also have ifup_eth0 and ifdown_eth0 to run other commands when
+# eth0 is started and stopped.
+# You should note that we don't stop the network at system shutdown by default.
+# If you really need this, then set keep_network=NO
+
+# Lastly, the interfaces variable pulls in virtual interfaces that cannot
+# be automatically detected.
+#interfaces="br0 bond0 vlan0"
+
+# You can also use files instead of variables here if you like:
+# /etc/ifconfig.eth0 is equivalent to ifconfig_eth0
+# /etc/ip.eth0 is equivalent to ifconfig_eth0
+# /etc/ifup.eth0 is equivalent to ifup_eth0
+# /etc/ifdown.eth0 is equivalent to ifdown_eth0
+# Any files found will automatically be put into the interfaces variable.
+# You don't need to escape variables in files, so use $int instead of \$int.
+
+# If you require DHCP, you should install dhcpcd and it to the boot or
+# default runlevel.
+
+# NIS users can set the domain name here
+#domainname="foobar"
+
+# You can assign a default route
+#defaultroute="gw 192.168.0.1"
+#defaultroute6="gw 2001:a:b:c"
+
+# ifconfig under Linux is not that powerful and doesn't easily handle
+# multiple addresses
+# On the other hand, ip (iproute2) is quite powerful and is also supported
+#ip_eth0="192.168.0.10/24; 192.168.10.10/24"
+
+# You can also use ip to add the default route.
+#defaultiproute="via 192.168.0.1"
+#defaultiproute6="via 2001:a:b:c"
+
+# ip doesn't handle MTU like ifconfig, but we can do it like so
+#ifup_eth0="ip link set \$int mtu 1500"
+
+# Create a bonded interface
+#interfaces="bond0"
+#ifup_bond0="modprobe bonding; ifconfig \$int up; ifenslave \$int bge0"
+#ifconfig_bond0="192.168.0.10 netmask 255.255.255.0"
+#ifdown_bond0="rmmod bonding"
+
+# Create tap interface and a bridge interface.
+# We add the tap to the bridge.
+# An external program, like dhcpcd, will configure the IP on the bridge
+#interfaces="tun0 br0"
+#ifup_tun0="tunctl -t \$int"
+#ifdown_tun0="tunctl -d \$int"
+#ifup_br0="brctl addbr \$int; brctl add \$int eth1; brtctl add \$int eth2"
+#ifdown_br0="ifconfig \$int down; btctl delbr \$int"
+
+# Create VLAN
+#interfaces="eth0_2 eth0_3 eth0_4"
+#ifup_eth0="vconfig add \$int 2; vconfig add \$int 3; vconfig add \$int 4"
+#ifconfig_eth0_2="192.168.2.10 netmask 255.255.255.0"
+#ifconfig_eth0_3="192.168.3.10 netmask 255.255.255.0"
+#ifconfig_eth0_4="192.168.4.10 netmask 255.255.255.0"
+#ifdown_eth0="vconfig rem \$int.2; vconfig rem \$int.3; vconfig rem \$int.4"
+
+# Normally you would use wpa_supplicant to configure wireless, but you can
+# use iwconfig also
+#ifup_wlan0="iwconfig \$int key s:secretkey enc open essid foobar"
diff --git a/packages/system/openrc/etc/conf.d/staticroute b/packages/system/openrc/etc/conf.d/staticroute
new file mode 100644
index 0000000..68d22eb
--- /dev/null
+++ b/packages/system/openrc/etc/conf.d/staticroute
@@ -0,0 +1,8 @@
+# Separate multiple routes using ; or new lines.
+
+# Example static routes. See route(8) for syntax.
+#staticroute="net 192.168.0.0 netmask 255.255.255.0 gw 10.73.1.1
+#net 192.168.1.0 netmask 255.255.255.0 gw 10.73.1.1"
+
+# Example static routes using iproute2. See ip(8) for syntax.
+#staticiproute="192.168.0.0/24 via 10.73.1.1; 192.168.1.0/24 via 10.73.1.1"
diff --git a/packages/system/openrc/etc/conf.d/udhcpc b/packages/system/openrc/etc/conf.d/udhcpc
new file mode 100644
index 0000000..4fe22b4
--- /dev/null
+++ b/packages/system/openrc/etc/conf.d/udhcpc
@@ -0,0 +1,5 @@
+# pidfile used for udhcpc
+#udhcpc_pidfile=/run/udhcpc.pid
+
+# Additional argument when starting udhcpc
+udhcpc_args=""
diff --git a/packages/system/openrc/etc/conf.d/urandom b/packages/system/openrc/etc/conf.d/urandom
new file mode 100644
index 0000000..05538e0
--- /dev/null
+++ b/packages/system/openrc/etc/conf.d/urandom
@@ -0,0 +1,5 @@
+# Sometimes you want to have urandom start before "localmount"
+# (say for crypt swap), so you will need to customize this
+# behavior. If you have /var on a separate partition, then
+# make sure this path lives on your root device somewhere.
+urandom_seed="/etc/random-seed"