#!/bin/sh

# Run this script as a postscript on any node (stateless, statefull,
#  full-disk install, AIX, Linux) to start the GPFS daemon
# 

# If you have any special network dependencies, you may want to add code
# to check them first

hostname=`hostname -s`;

if [ !-z $NODE ]
then
    hostname=`echo $NODE | awk -F-hf '{print $1}'`
fi

/usr/lpp/mmfs/bin/mmchlicense client --accept -N $hostname
/usr/lpp/mmfs/bin/mmstartup

