#!/bin/sh

##################################################################
## This is a simple script for creating the encrypted password  ##
##   for SMSCON-Editor, in addition it will send an SMS to      ##
##   MASTERNUMBER everytime the password is changed.            ## 
# $Id: smsconEditorCreatePass 100 2011-12-27 08:13:10Z yablacky $
##################################################################

echo "$1" | md5sum > "$2"
RESULT=$?
smscon -sendsms MASTERNUMBER "N900[$(uname -n)] SMSCON Editor: Password has been changed to '$1'"
exit $RESULT
