#!/bin/sh

. /lib/functions.sh
. /lib/netifd/netifd-proto.sh

local device=$(uci get simd.@simd[0].device)
[ -e "$device" ] || {
	logger "it doesnt exist $device needed by simd"
}
if [ "/dev/$DEVICENAME" == "$device" ]; then
	if [ "$ACTION" = add ]; then
		simd.sh
		updategsmdate.sh
		#/etc/init.d/smsd start
	fi                            
	#if [ "$ACTION" = remove ]; then
		#/etc/init.d/smsd stop  
	#fi 
fi                                   
        
