diff options
| author | Michael Neves | 2013-01-22 15:16:04 +0100 |
|---|---|---|
| committer | Michael Neves | 2013-01-22 15:16:04 +0100 |
| commit | 17af75beeb7410e8f04a38a41fae69ef58754d9d (patch) | |
| tree | 75650f7a06aa52713238e8505cac1f0eb31d94d2 /remote | |
| parent | added shared-mime-type as dependency (diff) | |
| download | tm-scripts-17af75beeb7410e8f04a38a41fae69ef58754d9d.tar.gz tm-scripts-17af75beeb7410e8f04a38a41fae69ef58754d9d.tar.xz tm-scripts-17af75beeb7410e8f04a38a41fae69ef58754d9d.zip | |
remove noclear option for older agetty versions
Diffstat (limited to 'remote')
| -rw-r--r-- | remote/tools/systemd/systemd.build | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/remote/tools/systemd/systemd.build b/remote/tools/systemd/systemd.build index c77033ac..a055cf90 100644 --- a/remote/tools/systemd/systemd.build +++ b/remote/tools/systemd/systemd.build @@ -40,4 +40,10 @@ post_copy() { # dont clear systemd log at startup sed -i.bak "s/TTYVTDisallocate=yes/TTYVTDisallocate=no/g" $INIT_DIR/usr/lib/systemd/system/getty@.service + + #old agetty version doesn't support --noclear option in getty service + if [ "x$(dpkg -s util-linux | grep Version: | cut -d' ' -f2)" == "x2.19.1-2ubuntu3" ]; + then + sed -i.bak "s/ExecStart=-\/sbin\/agetty --noclear %I 38400 linux/ExecStart=-\/sbin\/agetty %I 38400 linux/g" $INIT_DIR/usr/lib/systemd/system/getty@.service + fi } |
