As coded, there is a test '-s /etc/mtab'. This tests whether the item is a socket; it looks like the test should be '-l /etc/mtab' which tests whether the item is a symbolic link.