mirror of
https://github.com/systemd/systemd.git
synced 2024-12-23 21:35:11 +03:00
910c6d0931
Before only one comparison was allowed. Let's make this more flexible: ConditionKernelVersion = ">=4.0" "<=4.5" Fixes #12881. This also fixes expressions like "ConditionKernelVersion=>" which would evaluate as true.
18 lines
467 B
Desktop File
18 lines
467 B
Desktop File
[Unit]
|
|
Description=Test for basic execution
|
|
ConditionKernelVersion=">=3.0"
|
|
ConditionKernelVersion=">=2.0" "<=60" "!=1.4"
|
|
ConditionKernelVersion=" >= 2.0" " <= 60 " "!= 1.4"
|
|
ConditionKernelVersion=" >= 2.0" " * " "*.*"
|
|
|
|
[Service]
|
|
ExecStart=touch /tmp/a ; /bin/sh -c 'touch /tmp/b' ; touch /tmp/c
|
|
ExecStart=test -f /tmp/a
|
|
ExecStart=!test -f /tmp/b
|
|
ExecStart=!!test -f /tmp/c
|
|
ExecStart=+test -f /tmp/c
|
|
ExecStartPost=rm /tmp/a /tmp/b /tmp/c
|
|
|
|
PrivateTmp=true
|
|
Type=oneshot
|