Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
求助,这个驱动怎么装??安装文件
Experiences and Insight
606
views ·
1
replies ·
To
floor
Go
lovewuyannv
deepin
2017-10-24 16:29
Author
#!/bin/bash
#
# batch file to setup
#
################################################################################
#
# echo informations
#
echo
echo " start install......"
################################################################################
#
# check and execute uninstall shell script
#
if test -f /usr/share/cups/model/argox/uninstall
then
echo "find"
echo " execute uninstall shell script now......"
if !(/usr/share/cups/model/argox/uninstall)
then
echo " uninstall old failed"
echo " install driver failed"
echo
exit 1
fi
else
echo "no find"
fi
################################################################################
#
# echo informations
#
echo " ####################################################
#
# set own, grp and permissions
#
chown -R root:root ./*
chmod 644 ./ppd/*.ppd
chmod 755 ./uninstall
chmod 755 ./rastertoargox
################################################################################
#
# make install dir
#
mkdir -p /usr/share/cups/model/argox/
chown -R root:root /usr/share/cups/model/argox/
chmod -R 755 /usr/share/cups/model/argox/
################################################################################
#
# copy files
#
cp ./rastertoargox /usr/lib/cups/filter/
cp ./ppd/*.ppd /usr/share/cups/model/argox/
cp ./uninstall /usr/share/cups/model/argox/
echo " restart spooler - CUPS"
################################################################################
#
# restart
#
if test -f /etc/init.d/cups
then
/etc/init.d/cups restart
else
if test -f /etc/init.d/cupsys
then
/etc/init.d/cupsys restart
fi
fi
################################################################################
#
# echo informations
#
echo " install driver completed"
echo
exit 0
Reply
Like 0
Favorite
View the author
All Replies
lovewuyannv
deepin
2017-10-24 16:30
#1
手贱终端输入 sudo chown -R root:root ./* 结果------哎
Reply
Like 0
View the author
Please
sign
in first
Featured Collection
Change
[Tutorial] deepin25 WSL Offline Installation Guide
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Events
More