Check/Set HRNs of Sites/Slices/Persons at PLC startup
[myplc.git] / plc.d / hrn
1 #!/bin/bash
2 #
3 # priority: 1300
4 #
5 # Check and Set the HRNs of Sites/Slices/Persons
6 #
7 # Copyright (C) 2006 The Trustees of Princeton University
8 # Mohamed Amine Larabi <mohamed.larabi@inria.fr>
9 #
10
11 # Source function library and configuration
12 . /etc/plc.d/functions
13 . /etc/planetlab/plc_config
14
15 # Be verbose
16 set -x
17
18
19 case "$1" in
20     start)
21         MESSAGE=$"Checking/Setting HRNs"
22         dialog "$MESSAGE"
23
24         check-hrns.py       
25  
26         result "$MESSAGE"
27         ;;
28 esac
29
30 exit $ERRORS