#!/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 54 2011-12-20 14:36:58Z saturn $
##################################################################

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