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 1
1
#! /bin/sh
2
2
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
4
4
5
5
if [ $? != 0 ]
6
6
then
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
8
8
cat << EOF >> /etc/rc.local.d/local.sh
9
9
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":")
11
11
do
12
12
/bin/sed -i 's/^-:'\$ i':/+:'\$ i':/g' /etc/security/access.conf
13
13
done
14
14
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
16
16
if [ \$ ? != 0 ]
17
17
then
18
18
echo '* * * * * /etc/rc.local.d/local.sh' >> /var/spool/cron/crontabs/root
You can’t perform that action at this time.
0 commit comments