[Lunar-commits] r17269 - moonbase/trunk/utils/makedev

Auke Kok sofar at lunar-linux.org
Fri Nov 11 22:02:07 UTC 2005


Author: sofar
Date: 2005-11-11 22:01:58 +0000 (Fri, 11 Nov 2005)
New Revision: 17269

Modified:
   moonbase/trunk/utils/makedev/POST_INSTALL
   moonbase/trunk/utils/makedev/POST_INSTALL.ia64
   moonbase/trunk/utils/makedev/POST_INSTALL.ppc
   moonbase/trunk/utils/makedev/POST_INSTALL.sparc64
Log:
Removing obsolete code that even points to old locations of binaries, replacing it with add_priv_users. The floppy group is present on the ISO too.


Modified: moonbase/trunk/utils/makedev/POST_INSTALL
===================================================================
--- moonbase/trunk/utils/makedev/POST_INSTALL	2005-11-11 20:16:32 UTC (rev 17268)
+++ moonbase/trunk/utils/makedev/POST_INSTALL	2005-11-11 22:01:58 UTC (rev 17269)
@@ -1,8 +1,6 @@
-[ -d /dev ] || /bin/mkdir /dev
-/usr/sbin/groupadd -g 25 -r -f floppy > /dev/null 2>/dev/null
-/usr/sbin/useradd -c "virtual console memory owner" -u 69 -s /sbin/nologin -d /dev vcsa
-cp $SCRIPT_DIRECTORY/install-devices.sh /dev
-chmod 0700 /dev/install-devices.sh
-echo ""
-echo "Please run /dev/install-devices.sh"
-echo ""
+[ -d /dev ] || mkdir /dev
+add_priv_user vcsa:vcsa -s /sbin/false -d /dev -c "virtual console memory owner"
+install -c -m 0700 $SCRIPT_DIRECTORY/install-devices.sh /dev
+message ""
+message "Please run /dev/install-devices.sh"
+message ""

Modified: moonbase/trunk/utils/makedev/POST_INSTALL.ia64
===================================================================
--- moonbase/trunk/utils/makedev/POST_INSTALL.ia64	2005-11-11 20:16:32 UTC (rev 17268)
+++ moonbase/trunk/utils/makedev/POST_INSTALL.ia64	2005-11-11 22:01:58 UTC (rev 17269)
@@ -1,11 +1,9 @@
-[ -d /dev ] || /bin/mkdir /dev
-/usr/sbin/groupadd -g 25 -r -f floppy > /dev/null 2>/dev/null
-/usr/sbin/useradd -c "virtual console memory owner" -u 69 -s /sbin/nologin -d /dev vcsa
-cp $SCRIPT_DIRECTORY/install-devices.sh /dev
-chmod 0700 /dev/install-devices.sh
-echo ""
-echo "Please run /dev/install-devices.sh"
-echo ""
+[ -d /dev ] || mkdir /dev
+add_priv_user vcsa:vcsa -s /sbin/false -d /dev -c "virtual console memory owner"
+install -c -m 0700 $SCRIPT_DIRECTORY/install-devices.sh /dev
+message ""
+message "Please run /dev/install-devices.sh"
+message ""
 
 makedev efirtc
 

Modified: moonbase/trunk/utils/makedev/POST_INSTALL.ppc
===================================================================
--- moonbase/trunk/utils/makedev/POST_INSTALL.ppc	2005-11-11 20:16:32 UTC (rev 17268)
+++ moonbase/trunk/utils/makedev/POST_INSTALL.ppc	2005-11-11 22:01:58 UTC (rev 17269)
@@ -1,11 +1,9 @@
-[ -d /dev ] || /bin/mkdir /dev
-/usr/sbin/groupadd -g 25 -r -f floppy > /dev/null 2>/dev/null
-/usr/sbin/useradd -c "virtual console memory owner" -u 69 -s /sbin/nologin -d /dev vcsa
-cp $SCRIPT_DIRECTORY/install-devices.sh /dev
-chmod 0700 /dev/install-devices.sh
-echo ""
-echo "Please run /dev/install-devices.sh"
-echo ""
+[ -d /dev ] || mkdir /dev
+add_priv_user vcsa:vcsa -s /sbin/false -d /dev -c "virtual console memory owner"
+install -c -m 0700 $SCRIPT_DIRECTORY/install-devices.sh /dev
+message ""
+message "Please run /dev/install-devices.sh"
+message ""
 
 makedev iseries
 makedev nvram

Modified: moonbase/trunk/utils/makedev/POST_INSTALL.sparc64
===================================================================
--- moonbase/trunk/utils/makedev/POST_INSTALL.sparc64	2005-11-11 20:16:32 UTC (rev 17268)
+++ moonbase/trunk/utils/makedev/POST_INSTALL.sparc64	2005-11-11 22:01:58 UTC (rev 17269)
@@ -1,19 +1,17 @@
-[ -d /dev ] || /bin/mkdir /dev
-/usr/sbin/groupadd -g 25 -r -f floppy > /dev/null 2>/dev/null
-/usr/sbin/useradd -c "virtual console memory owner" -u 69 -s /sbin/nologin -d /dev vcsa
-cp $SCRIPT_DIRECTORY/install-devices.sh /dev
-chmod 0700 /dev/install-devices.sh
-echo ""
-echo "Please run /dev/install-devices.sh"
-echo ""
+[ -d /dev ] || mkdir /dev
+add_priv_user vcsa:vcsa -s /sbin/false -d /dev -c "virtual console memory owner"
+install -c -m 0700 $SCRIPT_DIRECTORY/install-devices.sh /dev
+message ""
+message "Please run /dev/install-devices.sh"
+message ""
 
 makedev audioctl
 makedev kbd
 makedev openprom
 ln -s sunmouse $RPM_BUILD_ROOT/dev/mouse
 for dev in aztcd cdu31a cdu535 cm205cd cm206cd gscd hitcd mcd mcdx \
-sbpcd1 sbpcd2 scd3 sjcd sbpcd3 sonycd sbpcd sbpcd0 \
-atibm inportbm logibm ; do
-rm -f $RPM_BUILD_ROOT/dev/${dev}
-grep -v "/dev/${dev}" manifest > manifest.tmp && mv manifest.tmp manifest
+    sbpcd1 sbpcd2 scd3 sjcd sbpcd3 sonycd sbpcd sbpcd0 \
+    atibm inportbm logibm ; do
+        rm -f $RPM_BUILD_ROOT/dev/${dev}
+        grep -v "/dev/${dev}" manifest > manifest.tmp && mv manifest.tmp manifest
 done



More information about the Lunar-commits mailing list