Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion mrsh.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,15 @@ DESTDIR="$RPM_BUILD_ROOT" make install
%{_bindir}/rsh
%{_bindir}/rlogin

%post server
%post
if ! grep "^mshell" /etc/services > /dev/null; then
echo "mshell 21212/tcp # mrshd" >> /etc/services
fi
if ! grep "^mlogin" /etc/services > /dev/null; then
echo "mlogin 541/tcp # mrlogind" >> /etc/services
fi

%post server
# 'condrestart' is not portable
if [ -x /etc/init.d/xinetd ]; then
if /etc/init.d/xinetd status | grep -q running; then
Expand Down