-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test KRNL-5622 what about SO without systemd (systemctl) - for example Slackware? #1544
Comments
A possible solution: |
Can it be accepted? |
Added a slightly different if-statement to allow also for proper logging. See commit 0316811 Can you test if it works for you? |
With my modification, the runlevel is also displayed in the case without systemd. With your modification, the runlevel display is missing if systemd is missing! The if block for inittab is out of place!
|
You are right, your solution might be better suited for a wider range of Linux distributions. Want to create a pull request for it? |
I can create a pull request, but I would like to study a little more the two code variants. |
After a bit of study, I finally stuck with my solution.
The only option that worked for both OSes is ! -z |
Describe the bug
lynis/include/tests_kernel
Line 44 in fb5b808
Version
Expected behavior
If it does not exist, the command should not be run:
systemctl get-default
Output
The text was updated successfully, but these errors were encountered: