diff options
Diffstat (limited to 'units/tizen-generate-env.service')
-rw-r--r-- | units/tizen-generate-env.service | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/units/tizen-generate-env.service b/units/tizen-generate-env.service new file mode 100644 index 0000000..ae5bc98 --- /dev/null +++ b/units/tizen-generate-env.service @@ -0,0 +1,12 @@ +[Unit] +Description=Generate environment from /etc/profile.d +DefaultDependencies=no +After=opt.mount +Before=basic.target + +[Service] +Type=oneshot +ExecStart=/usr/bin/env -i sh -c 'source /etc/profile; env | /bin/egrep -v "^(HOME|PWD|SHLVL|_)=" > /run/tizen-mobile-env' + +[Install] +WantedBy=basic.target |