I would imagine that there would be a relaxed immigration policy between the U.K. And scotland, similar to that proposed with Ireland.
Of course instead of illegal immigrants trying to jump on lorries at Calais they can just stroll across the border at Carlisle.