mirror of
git://slackware.nl/current.git
synced 2024-12-28 09:59:53 +01:00
15 lines
329 B
Bash
15 lines
329 B
Bash
|
if [ ! -r etc/shells ]; then
|
||
|
touch etc/shells
|
||
|
chmod 644 etc/shells
|
||
|
fi
|
||
|
if ! grep -wq /bin/dash etc/shells ; then
|
||
|
echo /bin/dash >> etc/shells
|
||
|
fi
|
||
|
# Compatibility for #!/bin/ash scripts:
|
||
|
if [ ! -r bin/ash ]; then
|
||
|
( cd bin ; ln -sf /bin/dash ash )
|
||
|
fi
|
||
|
if ! grep -wq /bin/ash etc/shells ; then
|
||
|
echo /bin/ash >> etc/shells
|
||
|
fi
|