diff --git a/projects/RPi/filesystem/usr/lib/systemd/system/serial-console.service b/projects/RPi/filesystem/usr/lib/systemd/system/serial-console.service index d70e3df75f..5dffa1a843 100644 --- a/projects/RPi/filesystem/usr/lib/systemd/system/serial-console.service +++ b/projects/RPi/filesystem/usr/lib/systemd/system/serial-console.service @@ -5,7 +5,8 @@ ConditionKernelCommandLine=console [Service] WorkingDirectory=/storage -ExecStart=/bin/sh -c '. /etc/profile; exec /bin/sh' +Environment="ENV=/etc/profile" +ExecStart=/bin/sh Restart=always RestartSec=0 StandardInput=tty diff --git a/projects/RPi2/filesystem/usr/lib/systemd/system/serial-console.service b/projects/RPi2/filesystem/usr/lib/systemd/system/serial-console.service index d70e3df75f..5dffa1a843 100644 --- a/projects/RPi2/filesystem/usr/lib/systemd/system/serial-console.service +++ b/projects/RPi2/filesystem/usr/lib/systemd/system/serial-console.service @@ -5,7 +5,8 @@ ConditionKernelCommandLine=console [Service] WorkingDirectory=/storage -ExecStart=/bin/sh -c '. /etc/profile; exec /bin/sh' +Environment="ENV=/etc/profile" +ExecStart=/bin/sh Restart=always RestartSec=0 StandardInput=tty