File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 11#! /bin/sh
22
3- grep ' ^#PAMFix' /etc/rc.local.d/local.sh > /dev/null 2>&1
3+ /bin/ grep ' ^#PAMFix' /etc/rc.local.d/local.sh > /dev/null 2>&1
44
55if [ $? != 0 ]
66then
7- sed -i ' /exit 0/d' /etc/rc.local.d/local.sh
7+ /bin/ sed -i ' /exit 0/d' /etc/rc.local.d/local.sh
88 cat << EOF >> /etc/rc.local.d/local.sh
99
10- for i in \$ (grep "/bin/sh" /etc/passwd | cut -f1 -d":")
10+ for i in \$ (/bin/ grep "/bin/sh" /etc/passwd | cut -f1 -d":")
1111do
1212 /bin/sed -i 's/^-:'\$ i':/+:'\$ i':/g' /etc/security/access.conf
1313done
1414
15- grep local.sh /var/spool/cron/crontabs/root > /dev/null 2>&1
15+ /bin/ grep local.sh /var/spool/cron/crontabs/root > /dev/null 2>&1
1616if [ \$ ? != 0 ]
1717then
1818 echo '* * * * * /etc/rc.local.d/local.sh' >> /var/spool/cron/crontabs/root
You can’t perform that action at this time.
0 commit comments