Lock device on boot