等Bo-blog 2.5出来就恢复bo-blog的数据吧…

看了bob发布的Bo-blog 2.5后台操作概念演示,很赞。

查看DD的进度

很好用,不用盯着光标傻等了

dd if=a/ffnew.img of=/dev/hda bs=4k

另外一个终端里输入

while killall -USR1 dd; do sleep 5; done

切回去就可以看到进度了,5秒刷新一次
说明嘛,见man dd和man kill

openwrt hotplug mount script enhanced

最近在rg100a上折腾openwrt…
参考dev上的信息,强化了下自动mount的脚本
顺便又学习了下shell script,嗯,玩中学,学中玩^^

/etc/hotplug.d/block/10-mount

#!/bin/sh
 
# Copyright (C) 2009 OpenWrt.org
 
blkdev=`dirname $DEVPATH`
if [ `basename $blkdev` != "block" ]; then
 
    device=`basename $DEVPATH`
    case "$ACTION" in
        add)
                mkdir -p /mnt/$device
                # vfat & ntfs-3g check
                if  [ `which fdisk` ]; then
                        isntfs=`fdisk -l | grep $device | grep NTFS`
                        isvfat=`fdisk -l | grep $device | grep FAT`
                        isfuse=`lsmod | grep fuse`
                        isntfs3g=`which ntfs-3g`
                else
                        isntfs=""
                        isvfat=""
                fi 
 
                # mount with ntfs-3g if possible, else with default mount
                if [ "$isntfs" -a "$isfuse" -a "$isntfs3g" ]; then
                        ntfs-3g -o nls=utf8 /dev/$device /mnt/$device
                elif [ "$isvfat" ]; then
                        mount -o iocharset=utf8 /dev/$device /mnt/$device
                else
                        mount /dev/$device /mnt/$device
                fi
                ;;
        remove)
                umount /dev/$device
                ;;
    esac
 
fi

hosts (失效了,感谢伟大的长城)

#adc
85.11.25.78 asiandvdclub.org
85.11.25.78 www.asiandvdclub.org
85.11.25.78 announce.asiandvdclub.org
#xmarks
64.147.188.86 www.xmarks.com
64.147.188.92 api.xmarks.com
64.147.188.89 login.xmarks.com
64.147.188.87 sync.xmarks.com
64.147.188.86 static.xmarks.com
64.147.188.86 download.xmarks.com
64.147.188.86 my.xmarks.com

PlayStation.com オリジナル カレンダー壁紙 9月

Atmosphere 1.2.1 for DM500

新版来得真快,周末才找时间刷了1.2.0
»Read More

PlayStation.com オリジナル カレンダー壁紙 8月

Atmosphere v1.2.0 for DM500

Atmosphere的新版终于出来啦
»Read More

CFWEnabler 3.51 Released

CustomFirmware Enabler 3.51 para 5.03 ChickHen por Xenogears y Becus25.
CFWEnabler@MHU2D.net
»Read More

PlayStation.com オリジナル カレンダー壁紙 7月