I think Bob is right. (Thanks for providing the gadget!) The pattern I found for $n=15$ should give an idea about a feasible general pattern. Once all squares were covered, I removed every other line to exhibit the stair shapes. 
Going up from the bottom left (or going down from the top right), the pattern encountered is 1 2 1 - 1 2 1 - 1 2 1 - 1 2.
Going right from the bottom left (or going left from the top right), the pattern is 2 4 4 4 1. Both patterns together completely describe the covering.
So it looks like this only depends on n modulo 4 and is straightforward to iterate. To be complete: 
Of course this is not yet a rigorous proof, but it should be pretty clear how to formalize it if wanted. :)
EDIT: Even though it is obviously a very hard problem, it is linear in a certain sense, in a similar vein as the (very easy) Pick's theorem. Now, from playing around with the gadget, I have a stronger conjecture:
Trying to cover an $n\times n$ square with only $n-2$ lines, at least 4 cells will remain uncovered. Moreover, if exactly four cells remain, the only connected components formed by those are 1x1 (i.e. isolated cells) and/or 2x1. This would also mean (but I am a bit less sure about this) that no two of those four cells can be diagonally adjacent, i.e. share exactly 1 vertex.
It is this conjecture/finding which gave me the idea of 'linearity'. After all, there may be a hidden but rather easy mechanism hiding behind!