I guess that's one way to "repel all boarders". Still, if you're relying on a rifle to defend a ship of that size, I suspect you need remedial maritime warfare training (aka "how to fight like a fish-head when NOT in port" training).
"... In 1930, Falkenhausen retired from the service and in 1934 went to China to serve as Chiang Kai-shek's military advisor, as part of the Sino-German cooperation to reform the Chinese army. In 1937 Nazi Germany allied with the Empire of Japan, which with the Republic of China was fighting theSecond Sino-Japanese War. As a goodwill gesture to Japan, Germany recognized the Japanese puppet state of Manchukuo, withdrew German support from China and forced Falkenhausen to resign by threatening to have his family in Germany punished for disloyalty. After a goodbye dinner party with Chiang Kai-shek's family, Falkenhausen promised that he would never reveal any of battle plans he had devised to the Japanese. According to some sources (especially from Communist Chinese ones in the late 1930s), Falkenhausen kept in contact with Chiang Kai-shek and occasionally sent European luxury items and food to him, the Chiang household and his officers. On his 72nd birthday in 1950, Falkenhausen received a 12,000 U.S. dollar[citation needed] cheque from Chiang Kai-shek as his birthday gift and a personal note declaring him a "Friend of China".