     \001u { 
       send "/etc/init.d/guiSvr stop\r"
       expect "*# " { send "/etc/init.d/haSvr stop\r"}
+      expect "*# " { send "/usr/netscreen/GuiSvr/utils/setperms.sh GuiSvr\r"}
       expect "*# " { send "/usr/netscreen/GuiSvr/utils/.xdbUpdate.sh /usr/netscreen/GuiSvr/var/xdb admin 1 0 /__/password \"glee/aW9bOYEewkD/6Ri8sHh2mU=\"\r"}
       expect "*# " { send "/usr/netscreen/GuiSvr/utils/.xdbUpdate.sh /usr/netscreen/GuiSvr/var/xdb server 0 0 /__/ip \"$ourip\"\r"}
       expect "*# " { send "/usr/netscreen/GuiSvr/utils/.xdbUpdate.sh /usr/netscreen/GuiSvr/var/xdb server 0 1 /__/ip \"$ourip\"\r"} 

  send_user "
--- Key shortcuts ---
Ctrl+A l - types \"netscreen\\r\"
Ctrl+A p - types \"rpm -qa | grep netscreen | xargs -r rpm -e ; rm -rf /var/netscreen/*/*\" <- noticed no \\r
Ctrl+A i - can be entered during the nsm installtion will answer all the questions (clean install Gui+Dev/refresh)
Ctrl+A u - correct the customer db

Have fun :)\n"



    \001l { send "$pass\r" }

    \001p { send "rpm -qa | grep netscreen | xargs -r rpm -e ; rm -rf /var/netscreen/*/* /usr/netscreen/*" }

    \001i { 
        send  "\r"
