summaryrefslogtreecommitdiff
path: root/source/ap/dash/doinst.sh
blob: c44743f44b26c980b09c048af63e355e0c45afed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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