summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUwe Stuehler <uwe@cvs.openbsd.org>2005-07-18 00:16:00 +0000
committerUwe Stuehler <uwe@cvs.openbsd.org>2005-07-18 00:16:00 +0000
commit30681866138a020a716453350336bffb1febdee7 (patch)
tree92a92f80af347d5477438769189a7c8f41cead26
parentafd22d71df560f8fb66ed5baad0a90a242c3303d (diff)
Free up some space in the C3100 root filesystem; it is completely full.
-rw-r--r--distrib/zaurus/ipk/postinst12
1 files changed, 11 insertions, 1 deletions
diff --git a/distrib/zaurus/ipk/postinst b/distrib/zaurus/ipk/postinst
index 3e50f36415e..680ce5e86f2 100644
--- a/distrib/zaurus/ipk/postinst
+++ b/distrib/zaurus/ipk/postinst
@@ -1,5 +1,5 @@
#!/bin/sh
-# $OpenBSD: postinst,v 1.4 2005/07/12 06:33:41 uwe Exp $
+# $OpenBSD: postinst,v 1.5 2005/07/18 00:15:59 uwe Exp $
#
# Copyright (c) 2005 Uwe Stuehler <uwe@openbsd.org>
#
@@ -22,6 +22,16 @@ rmmod zbsdmod 2>/dev/null
mount -o remount,rw /
+# The C3100 has a 32M root filesystem, but it's full.
+rootsz=`df -k / | awk 'NR==2{print $2}'` || exit $?
+if [ ${rootsz:-0} -ge 32768 ]; then
+ # Make some room by moving this large dictionary.
+ if [ -f /usr/QtPalmtop.rom/etc/kanwadict ]; then
+ rm -f /home/QtPalmtop/etc/kanwadict
+ mv /usr/QtPalmtop.rom/etc/kanwadict /home/QtPalmtop/etc/kanwadict
+ fi
+fi
+
if [ ! -f rc.rofilesys.openbsd ]; then
cp -p rc.rofilesys rc.rofilesys.openbsd
fi