2 echo "############### tv-generate-env.post ################"
4 cat > /usr/lib/systemd/system/tizen-system-env.service << EOF
6 Description=Generate environment from /etc/profile.d
12 ExecStart=/usr/bin/env -i sh -c 'source /etc/profile; env | /bin/egrep -v "^(HOME|PWD|SHLVL|_|USER|MAIL|LOGNAME)=" > /run/tizen-system-env'
18 mkdir -p /usr/lib/systemd/system/basic.target.wants
19 ln -s ../tizen-system-env.service /usr/lib/systemd/system/basic.target.wants/tizen-system-env.service