-lock ${conn.dev}
\ No newline at end of file
+% if conn.type == 'PPP':
+lock ${conn.device}
+% elif conn.type == 'OE':
+lock plugin rp-pppoe.so ${conn.device}
+% elif conn.type == 'TUNNEL':
+lock noauth nobsdcomp nodeflate
+% endif
\ No newline at end of file