#!/bin/sh
if [ $1 = vnc ]; then
  sudo -u iceman vncpasswd
else
  /root/makewritable rw
  rm -f /etc/.pwd.lock
  pwconv
  /etc/iceos/passwd $1
  /root/makewritable ro
fi
