#!/bin/ksh # IBM_PROLOG_BEGIN_TAG # This is an automatically generated prolog. # # bos720 src/bos/usr/lpp/nfs/nfs_lku_restore_exports 1.2 # # Licensed Materials - Property of IBM # # Restricted Materials of IBM # # COPYRIGHT International Business Machines Corp. 2014 # All Rights Reserved # # US Government Users Restricted Rights - Use, duplication or # disclosure restricted by GSA ADP Schedule Contract with IBM Corp. # # IBM_PROLOG_END_TAG # this script restores the original's /etc/exports on the surrogate # @(#)56 1.2 src/bos/usr/lpp/nfs/nfs_lku_restore_exports, pkgnfs, bos720, 1502A_720 12/1/14 16:20:49 exports=/etc/exports exports_copy=/var/adm/ras/liveupdate/kext/nfs/exports # copy over the original's /etc/exports, or remove it if there was none if [[ -e $exports_copy ]]; then mv $exports_copy $exports if [[ $? -ne 0 ]]; then exit 1 fi else if [[ -e $exports ]]; then rm $exports if [[ $? -ne 0 ]]; then exit 1 fi fi fi exit 0