add autologin and rc.local function