Skip to content

Commit

Permalink
fix multi usb device check
Browse files Browse the repository at this point in the history
  • Loading branch information
jjandxa authored Feb 16, 2019
1 parent 0d102fd commit 740d542
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion swap/swap/swap/swap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ check_usb_status(){
# 3 成功检测到ext?格式磁盘,可以创建swap
# 4 swap分区已经加载

ext_type=`/bin/mount | grep -E 'mnt' | sed -n 1p | cut -d" " -f5`
ext_type=`/bin/mount | grep -E 'mnt' | cut -d" " -f5 | grep -Eo "ext2|ext3|ext4"`
usb_disk=`/bin/mount | grep -E 'mnt' | sed -n 1p | cut -d" " -f3`
swapon=`free | grep Swap | awk '{print $2}'`
dbus set swap_usb_type="$ext_type"
Expand Down

0 comments on commit 740d542

Please sign in to comment.