summaryrefslogtreecommitdiffstats
path: root/source/n/autofs/autofs.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'source/n/autofs/autofs.SlackBuild')
-rwxr-xr-xsource/n/autofs/autofs.SlackBuild9
1 files changed, 2 insertions, 7 deletions
diff --git a/source/n/autofs/autofs.SlackBuild b/source/n/autofs/autofs.SlackBuild
index 6ff852123..0b7190588 100755
--- a/source/n/autofs/autofs.SlackBuild
+++ b/source/n/autofs/autofs.SlackBuild
@@ -109,7 +109,7 @@ chmod 644 $PKG/etc/rc.d/rc.autofs.new
sed -i "s|/etc/sysconfig|/etc/default|g" $PKG/etc/rc.d/rc.autofs.new
# Install sample config files:
-for file in auto.master auto.misc auto.net auto.smb autofs_ldap_auth.conf default/autofs ; do
+for file in auto.master auto.misc auto.net auto.smb autofs_ldap_auth.conf ; do
cp -a samples/$file $PKG/etc/${file}
chown root:root $PKG/etc/${file}
chmod 644 $PKG/etc/${file}
@@ -121,21 +121,16 @@ mkdir -p $PKG/etc/default
cp -a samples/autofs.init.conf $PKG/etc/default/autofs.new
chown root:root $PKG/etc/default/autofs.new
chmod 644 $PKG/etc/default/autofs.new
-# Fix typo:
-sed -i "s/syatem/system/g" $PKG/etc/default/autofs.new
# Fix perms on some config files:
chmod 755 $PKG/etc/auto.smb $PKG/etc/auto.net
chmod 600 $PKG/etc/autofs_ldap_auth.conf
# Prep the config files:
-for file in auto.master auto.misc autofs.conf autofs_ldap_auth.conf default/autofs ; do
+for file in auto.master auto.misc autofs.conf autofs_ldap_auth.conf ; do
mv $PKG/etc/$file $PKG/etc/${file}.new
done
-# Fix a typo that's harmless but ugly:
-sed -i "s/syatem/system/g" $PKG/etc/default/autofs.new
-
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null