initial commit of file from CVS for e-smith-base on Thu 26 Oct 11:24:52 BST 2023

This commit is contained in:
2023-10-26 11:24:52 +01:00
parent bbc22988a8
commit 9510d1a360
678 changed files with 22721 additions and 2 deletions

View File

@@ -0,0 +1,10 @@
#!/bin/sh
count=$(sed -n '/[0-9]\s\+[^ ]\+[^0-9]$/p;/[0-9]\s\+\(rd\|ida\|cciss\|i2o\)\/[^ ]\+[^0-9p][0-9]\+$/p' /proc/partitions | wc -l)
if [ $count -ge 2 ]
then
exit 0
else
echo "Only $count drive(s) in this system - disabling raid monitoring"
exit 1
fi

View File

@@ -0,0 +1,16 @@
#!/bin/bash
# before 10.1 rsyslog was listening to /dev/log
# we want systemd-journald listen to that now
# and rsyslog to /run/systemd/journal/syslog
# will not be needed in SME 11
if [[ ! -S /dev/log ]]; then
#echo "no /dev/log"
/usr/bin/systemctl restart systemd-journald.socket
/usr/bin/systemctl restart systemd-journald.service
fi
# we can now keep going with rsyslog startup
# /etc/rsyslog.conf will define the use of /run/systemd/journal/syslog