Skip to content

Commit

Permalink
Remove some dead code from post_upgrade_command
Browse files Browse the repository at this point in the history
  • Loading branch information
rbgarga committed Sep 14, 2015
1 parent 3296e3d commit 69368ef
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/usr/local/share/pfSense/post_upgrade_command
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ if [ "${PFSENSETYPE}" = "pfSense" -o "${PFSENSETYPE}" = "nanobsd" ]; then
touch /conf/needs_package_sync
fi

# Detect interactive logins and display the shell
detect_command='[ -n "$SSH_TTY" -o "$TERM" = "cons25" ] && exec /etc/rc.initial'
echo "${detect_command}" > ${CVS_CO_DIR}/root/.shrc
echo "${detect_command}" >> ${CVS_CO_DIR}/root/.profile

if [ "${PFSENSETYPE}" = "nanobsd" ]; then
ROOT=/tmp/${1}/
else
Expand All @@ -26,9 +21,6 @@ if [ -x ${ROOT}usr/local/share/pfSense/post_upgrade_command.php ]; then
${ROOT}usr/local/share/pfSense/post_upgrade_command.php $1 >> /conf/upgrade_log.txt 2>&1
fi

# Remove any previous MD5 sum files
rm -f /root/*.md5 >/dev/null 2>&1

# Fixup permissions on installed files
if [ -f ${ROOT}usr/local/share/pfSense/base.mtree ]; then
if [ -x "/tmp/mtree.old" ]; then
Expand Down

0 comments on commit 69368ef

Please sign in to comment.