Sophie

Sophie

distrib > Fedora > 20 > x86_64 > by-pkgid > cee98a1f6a6735769fd66f4d9528188a > scriptlet

mksh-50f-1.fc20.x86_64.rpm

POSTIN

/bin/sh
grep -q "^/bin/mksh$" /etc/shells 2>/dev/null || \
  echo "/bin/mksh" >> /etc/shells
grep -q "^/usr/bin/mksh$" /etc/shells 2>/dev/null || \
  echo "/usr/bin/mksh" >> /etc/shells

POSTUN

/bin/sh
if [ ! -x /usr/bin/mksh ]; then
  sed -e 's@^/bin/mksh$@POSTUNREMOVE@' -e '/^POSTUNREMOVE$/d' -i /etc/shells
  sed -e 's@^/usr/bin/mksh$@POSTUNREMOVE@' -e '/^POSTUNREMOVE$/d' -i /etc/shells
fi