wm: infra

Download patch

ref: 2f8b3c3d30a8c92ae5ea2ccde2c78dc13dd37cf5
parent: 9f833900ad0a9bef9743dccddd01b31fd6dc2fe9
author: saeed <saeed@cloud9p.org>
date: Mon May 5 19:04:27 IDT 2025

Remove chnvram

9front has a program called `convkeys`, which happen to do the same.
while it might be useful in 9legacy, let's remove it until we switch to it.

--- a/chnvram
+++ /dev/null
@@ -1,35 +1,0 @@
-#!/bin/rc
-
-# in Plan 9 passwords are encrypted via the key in nvram
-# if you change nvram key, your users cant login with passwords.
-# which is -- very bad.
-
-# but sometimes you've got to change nvram password,
-# here is a tool that preserves your users passwords;
-# while also changing your nvram.
-
-if(! ~ $1 -y){
-	echo 'this is a dangrous program;
-if you don''t know how to use it, maybe you should avoid using it.' >[1=2]
-	exit usage
-}
-
-auth/keyfs
-mkdir -p /tmp/keys
-
-echo copying keys...
-for(i in /mnt/keys){
-	user=`{basename $i}
-	for(i in /mnt/keys/*){
-		cat $i/secret > /tmp/keys/$user
-	}
-}
-
-echo running auth/wrkey...
-auth/wrkey
-
-for(i in /tmp/keys/*){
-	user=`{basename $i}
-	wm/chusr -p `{cat $i} $user
-}
-echo done
--