Clean up environment setup

parent ada67345
......@@ -35,6 +35,7 @@ home = "/root"
[[files]]
path = "/etc/init.d/00_base"
data = """
stdio debug:
nulld
zerod
randd
......@@ -55,20 +56,30 @@ dhcpd
[[files]]
path = "/etc/init.d/20_redoxer"
data = """
echo
echo ## running redoxer-env ##
sh /etc/redoxer-env
"""
[[files]]
path = "/etc/redoxer-env"
data = """
#!/bin/sh
echo
echo ## preparing environment ##
export GROUPS 0
export HOME file:/root
export HOST redox
export SHELL file:/bin/sh
export UID 0
export USER root
export GROUPS=0
export HOME=file:/root
export HOST=redox
export SHELL=file:/bin/sh
export UID=0
export USER=root
cd file:/root
env
echo
echo ## running redoxer ##
redoxerd
exec redoxerd
"""
[[files]]
......
......@@ -58,20 +58,30 @@ dhcpd
[[files]]
path = "/etc/init.d/20_redoxer"
data = """
echo
echo ## running redoxer-env in orbital ##
orbital display:3/activate sh /etc/redoxer-env
"""
[[files]]
path = "/etc/redoxer-env"
data = """
#!/bin/sh
echo
echo ## preparing environment ##
export GROUPS 0
export HOME file:/root
export HOST redox
export SHELL file:/bin/sh
export UID 0
export USER root
export GROUPS=0
export HOME=file:/root
export HOST=redox
export SHELL=file:/bin/sh
export UID=0
export USER=root
cd file:/root
env
echo
echo ## running redoxer inside orbital ##
orbital display:3/activate redoxerd
echo ## running redoxer ##
exec redoxerd
"""
[[files]]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment