#!/bin/sh
# $Id: smsconEditorCreatePass 38 2011-12-18 11:01:16Z saturn $

## 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.

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